var feloader=function(t){!function(t){"use strict";for(var e,r,n={},i=function(){},o="memory".split(","),a="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=o.pop();)t[e]=t[e]||n;for(;r=a.pop();)t[r]=t[r]||i}(this.console=this.console||{});var e=this,r=function(){this.Env={host:e,mods:{}},this.Config={debug:"",packages:{},fns:{},useDailyAssets:!1,forceAssetsHost:t,assetsHost:"g.alicdn.com",dailyAssetsHost:"g-assets.daily.taobao.net",crossorigin:!1};var r=this.Loader={};r.Status={ERROR:-1,UNLOADED:0,LOADING:1,LOADED:2,INITIALIZING:3,INITIALIZED:4},this.initUtils(),this.initDataStructure(),this.initCssOnLoad(),this.initGetScript(),this.initConfig(),this.initComboLoader(),this.initLoader(),this.init()};return r.prototype.__BUILD_TIME="",r.prototype.version="4.1.20",r.prototype.config=function(e,r){var n,i,o,a=this.Config,s=a.fns,u=this;if("string"==typeof e)n=s[e],r===t?i=n?n.call(u):a[e]:n?i=n.call(u,r):a[e]=r;else for(var c in e)r=e[c],o=s[c],o?o.call(u,r):a[c]=r;return i},r}();!function(t){function e(t){var e=t.match(u)||[],r={};for(var n in c)r[n]=e[c[n]];return r.hostname&&(r.hostname=r.hostname.toLowerCase()),r.hostname&&!r.pathname&&(r.pathname="/"),r.host=r.hostname,r.port&&(r.host=r.hostname+":"+r.port),r}function r(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0===e++?".":""}))}function n(t){var e=t.split(/\//);return"/"===t.charAt(0)&&e[0]&&e.unshift(""),"/"===t.charAt(t.length-1)&&t.length>1&&e[e.length-1]&&e.push(""),e}function i(t,e){var r,n,i=0;if(l(t))for(n=t.length;n>i&&e(t[i],i,t)!==!1;i++);else for(r=o(t),n=r.length;n>i&&e(t[r[i]],r[i],t)!==!1;i++);}function o(t){var e=[];for(var r in t)e.push(r);return e}function a(t,e){for(var r in e)t[r]=e[r];return t}function s(t){return"/"===t.charAt(0)&&(t=0===t.indexOf("//")?location.protocol+t:location.protocol+"//"+location.host+t),"/"===t.charAt(t.length-1)&&(t+="index"),p.endsWith(t,".js")&&(t=t.slice(0,-3)),t}var u=new RegExp("^([\\w\\d+.-]+:)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(\\?[^#]*)?(#.*)?$"),c={protocol:1,auth:2,hostname:3,port:4,pathname:5,search:6,hash:7},l=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},f=/(http(s)?:)?\/\/([^\/]+)(?::(\d+))?/,d=Array.prototype.map,h=Array.prototype.filter,g=String.prototype.startsWith,p={noop:function(){},filter:h?function(t,e,r){return d.call(t,e,r||this)}:function(t,e,r){for(var n=t.length,i=new Array(n),o=0;n>o;o++){var a="string"==typeof t?t.charAt(o):t[o];(a||o in t)&&e.call(r||this,a,o,t)&&i.push(a)}return i},map:d?function(t,e,r){return d.call(t,e,r||this)}:function(t,e,r){for(var n=t.length,i=new Array(n),o=0;n>o;o++){var a="string"==typeof t?t.charAt(o):t[o];(a||o in t)&&(i[o]=e.call(r||this,a,o,t))}return i},startsWith:g?function(t,e){return g.call(t,e)}:function(t,e){return 0===t.lastIndexOf(e,0)},isEmptyObject:function(t){for(var e in t)if(void 0!==e)return!1;return!0},endsWith:function(t,e){var r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r},now:Date.now||function(){return+new Date},each:i,keys:o,isArray:l,indexOf:function(t,e){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1},normalizeSlash:function(t){return t.replace(/\\/g,"/")},normalizePath:function(t,r){var i=r.charAt(0);if("."!==i)return r;var o="";if(p.startsWithProtocol(t)){var a=e(t);o=a.protocol+"//"+a.host,t=a.pathname}var s=n(t),u=n(r);s.pop();for(var c=0,l=u.length;l>c;c++){var f=u[c];"."===f||(".."===f?s.pop():s.push(f))}return o+s.join("/").replace(/\/+/,"/")},startsWithProtocol:function(t){return p.startsWith(t,"http:")||p.startsWith(t,"https:")||p.startsWith(t,"file:")},isSameOriginAs:function(t,e){var r=t.match(f),n=e.match(f);return r[0]===n[0]},getHash:function(t){var e,r=5381;for(e=t.length;--e>-1;)r=(r<<5)+r+t.charCodeAt(e);return r+""},getSuffix:function(t){var e=t.match(/\.(\w+)$/);return e?e[1]:void 0}},m=function(){var t,e,n=this.Loader,i=this.Env,o=n.Status,u=i.mods,c=i.host,l=n.Utils={},f=c.document,d=(c.navigator||{}).userAgent||"";((t=d.match(/Web[Kk]it[\/]{0,1}([\d.]*)/))||(t=d.match(/Safari[\/]{0,1}([\d.]*)/)))&&t[1]&&(l.webkit=r(t[1])),(t=d.match(/Trident\/([\d.]*)/))&&(l.trident=r(t[1])),(t=d.match(/Gecko/))&&(l.gecko=.1,(t=d.match(/rv:([\d.]*)/))&&t[1]&&(l.gecko=r(t[1]))),(t=d.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2])&&(l.ie=r(e),l.ieMode=f.documentMode||l.ie,l.trident=l.trident||1),a(l,p),a(l,{mix:a,docHead:function(){return f.getElementsByTagName("head")[0]||f.documentElement},collectErrors:function(t,e,r){var n,i,a,s;for(r=r||{},e=e||[],n=0;n<t.length;n++)a=t[n],i=a.id,r[i]||(r[i]=1,s=a.status,s!==o.ERROR?l.collectErrors(a.getNormalizedRequiredModules(),e,r):e.push(a));return e},createModule:function(t,e){t=s(t);var r=u[t];return r||(r=u[t]),r?(e&&r.reset(e),r):(u[t]=r=new n.Module(a({id:t},e)),r)},createModules:function(t){return l.map(t,function(t){return l.createModule(t)})},initModules:function(t){var e,r=t.length,n=1;for(e=0;r>e;e++)n&=t[e].initRecursive();return n},getModulesExports:function(t){for(var e=t.length,r=[],n=0;e>n;n++)r.push(t[n].getExports());return r},addModule:function(t,e,r){var n=u[t];return n&&void 0!==n.factory?(console.warn(t+" is defined more than once"),void 0):(l.createModule(t,a({id:t,status:o.LOADED,factory:e},r)),void 0)}})};t.prototype.initUtils=m}(feloader),function(t,e){function r(t,r){var n=this;n.name=e,n.base=e,n.main=e,n.filter=e,n.tag=e,n.charset=e,n.combine=e,n.group=e,n.modules={},n.ctx=r,n.ctx.Loader.Utils.mix(n,t)}function n(t,r){return t[r]!==e?t[r]:t.ctx.Config[r]}function i(t,e,r){for(var n=0;n<e.length;n++)e[n]=t.resolve(e[n]).id;t.ctx.use(e,r)}function o(t,r){var n=this;n.ctx=r;var o=this.ctx.Loader.Status,a=this.ctx.Loader.Utils;n.exports=e,n.module=n,n.status=o.UNLOADED,n.id=e,n.factory=e,n.config=e,n.cjs=1;var s=this.ctx.Loader.Utils.mix;s(n,t),n.waits={};var u=n._require=function(t,e){if("string"==typeof t){var r=n.resolve(t);return a.initModules(r.getNormalizedModules()),r.getExports()}i(n,t,e)};u.toUrl=function(t){var e=n.getUri(),r="",i=e,o=e.indexOf("//");return-1!==o&&(r=e.slice(0,o+2),i=e.slice(o+2)),r+a.normalizePath(i,t)},u.load=r.getScript}function a(e,r){var n=e.indexOf("!");if(-1!==n){var i=e.substring(0,n);e=e.substring(n+1);var o=r.ctx.Loader.Utils.createModule(i);o.initRecursive();var a=o.getExports()||{};a.alias&&(e=a.alias(t,e,i))}return e}function s(t,e){t=t||[];for(var r=t.length,n=0;r>n;n++)t[n]=e.resolve(t[n]).id;return t}function u(t){var e,r=t.id,n=t.alias;if("string"==typeof n&&(t.alias=n=[n]),n)return n;if(e=t.getPackage()){var i;e.name===r&&(i=e.main)?(r+="/","."!==i.charAt(0)&&(i="./"+i),n=[t.ctx.Loader.Utils.normalizePath(r,i)]):e.alias&&(n=e.alias(r))}return n=t.alias=n||[a(r,t)]}var c="ignorePackageNameInUri";r.prototype={constructor:r,reset:function(t){this.ctx.Loader.Utils.mix(this,t);for(var e in this.modules)this.modules[e].reset()},getFilter:function(){return n(this,"filter")},getTag:function(){return n(this,"tag")},getBase:function(){return this.base},getCharset:function(){return n(this,"charset")},isCombine:function(){return n(this,"combine")},isIgnorePackageNameInUri:function(){return n(this,c)},getGroup:function(){return n(this,"group")},addChildModule:function(t,e){this.modules[t]=e}},o.prototype={feloader:1,constructor:o,config:function(){return this.config},reset:function(t){var e=this,r=this.ctx.Loader.Utils.mix;r(e,t),t&&t.requires&&e.setRequiresModules(t.requires),delete e.packageInfo},require:function(t){return this.resolve(t).getExports()},resolve:function(t){var e=this.ctx.Loader.Utils;return e.createModule(e.normalizePath(this.id,t))},add:function(t){this.waits[t.id]=t},remove:function(t){delete this.waits[t.id]},contains:function(t){return this.waits[t.id]},flush:function(){this.ctx.Loader.Utils.each(this.waits,function(t){t.flush()}),this.waits={}},getType:function(){var t=this.ctx.Loader.Utils,e=this,r=e.type;if(!r){var n=e.id;r=t.endsWith(n,".css")?"css":"js",e.type=r}return r},getAlias:function(){var t=this,e=t.id,r=u(t),n=[];if(r[0]===e)n=r;else if(r.length>1)for(var i=0,o=r.length;o>i;i++){var a=r[i];if(a&&a!==e){var s=this.ctx.Loader.Utils.createModule(a),c=s.getAlias();c?n.push.apply(n,c):n.push(a)}}else n.push(r[0]);return t.normalizedAlias=n,n},getNormalizedModules:function(){var t=this,e=t.getAlias(),r=[],n=this.ctx.Loader.Utils;return n.each(e,function(t){t&&r.push(t)}),t.normalizedModules=n.map(r,function(e){return t.ctx.Loader.Utils.createModule(e)}),t.normalizedModules},fixTwoVersion:function(t){var e=/(\d+\.\d+\.\d+\/.*)\d+\.\d+\.\d+\//;return e.test(t)&&(t=t.replace(e,"$1")),t},getUri:function(){var t=this;return t.uri=this.ctx.Loader.Utils.normalizeSlash(this.ctx.Config.resolveModFn(t)),this.fixTwoVersion(t.uri)},getUrl:function(){return this.getUri()},getExports:function(){var t=this.getNormalizedModules();return t[0]&&t[0].exports},getPackage:function(){var t=this;if("undefined"!=typeof t.packageInfo)return t.packageInfo;var e=t.id,r=this.ctx.Config,n=this.ctx.Loader.Utils,i=n.startsWith,o=n.filter,a=r.packages,s=t.id+"/",u=o(s.split("/"),function(t){return t.length>0}).slice(0,2).join("/");if(a[u])return t.packageInfo=a[u],t.packageInfo;u="";var c;for(c in a){var l=c;n.endsWith(l,"/")||(l+="/"),i(s,l)&&c.length>u.length&&(u=c)}return a[u]?(t.packageInfo=a[u],t.packageInfo.addChildModule(u,t),t.packageInfo):i(e,"/")||i(e,"http://")||i(e,"https://")||i(e,"file://")?(t.packageInfo=null,t.packageInfo):(t.packageInfo=a.core,t.packageInfo)},getTag:function(){var t=this;return t.tag||t.getPackage()&&t.getPackage().getTag()},getCharset:function(){var t=this;return t.charset||t.getPackage()&&t.getPackage().getCharset()},setRequiresModules:function(t){var e=this,r=e.requiredModules=e.ctx.Loader.Utils.map(s(t,e),function(t){return e.ctx.Loader.Utils.createModule(t)}),n=[];this.ctx.Loader.Utils.each(r,function(t){n.push.apply(n,t.getNormalizedModules())}),e.normalizedRequiredModules=n},getNormalizedRequiredModules:function(){var t=this;return t.setRequiresModules(t.requires),t.normalizedRequiredModules},getRequiredModules:function(){var t=this;return t.requiredModules?t.requiredModules:(t.setRequiresModules(t.requires),t.requiredModules)},callFactory:function(){var t=this;return t.factory.apply(t,t.cjs?[t._require,t.exports,t]:t.ctx.Loader.Utils.map(t.getRequiredModules(),function(t){return t.getExports()}))},initSelf:function(){var t,r=this,n=r.factory,i=this.ctx.Config,o=this.ctx.Loader.Status,a=this.ctx.Loader.Utils;if("function"==typeof n){if(r.exports={},i.debug)t=r.callFactory();else{try{t=r.callFactory()}catch(s){if(r.status=o.ERROR,r.onError||i.onModuleError){var u={type:"init",exception:s,module:r};r.error=u,r.onError&&r.onError(u),i.onModuleError&&i.onModuleError(u)}else setTimeout(function(){throw s},0);return 0}var c=1;if(a.each(r.getNormalizedRequiredModules(),function(t){return t.status===o.ERROR?(c=0,!1):void 0}),!c)return 0}t!==e&&(r.exports=t)}else r.exports=n;return r.status=o.INITIALIZED,r.afterInit&&r.afterInit(r),i.afterModuleInit&&i.afterModuleInit(r),1},initRecursive:function(){var t=this,e=1,r=t.status,n=this.ctx.Loader.Status,i=this.ctx.Loader.Utils;return r===n.ERROR?0:r>=n.INITIALIZING?e:(t.status=n.INITIALIZING,t.cjs?e=t.initSelf():(i.each(t.getNormalizedRequiredModules(),function(t){e=e&&t.initRecursive()}),e&&t.initSelf()),e)},undef:function(){this.status=this.ctx.Loader.Status.UNLOADED,this.error=null,this.factory=null,this.exports=null}};var l=function(){var t=this,e=this.Loader;e.Package=function(e){return new r(e,t)},e.Module=function(e){return new o(e,t)}};t.prototype.initDataStructure=l}(feloader),function(t){var e=function(){function t(){o||r()}function e(t){var e=0;if(i.webkit)t.sheet&&(e=1);else if(t.sheet)try{var r=t.sheet.cssRules;r&&(e=1)}catch(n){var o=n.name;"NS_ERROR_DOM_SECURITY_ERR"===o&&(e=1)}return e}function r(){for(var t in a){var s=a[t],u=s.node;e(u)&&(s.callback&&s.callback.call(u),delete a[t])}o=i.isEmptyObject(a)?0:setTimeout(r,n)}var n=30,i=this.Loader.Utils,o=0,a={};i.pollCss=function(e,r){var n=e.href,i=a[n]={};i.node=e,i.callback=r,t()},i.isCssLoaded=e};t.prototype.initCssOnLoad=e}(feloader),function(t){var e=function(){var t,e=1e3,r=this.Env.host,n=r.document,i=this.Loader.Utils,o=this.Config,a={},s=i.webkit;this.getScript=function(r,u,c){function l(){var t=x.readyState;t&&"loaded"!==t&&"complete"!==t||(x.onreadystatechange=x.onload=null,b(0))}var f,d,h,g,p,m=u,v=o.crossorigin,y=i.endsWith(r,".css");if("object"==typeof m&&(u=m.success,f=m.error,d=m.timeout,c=m.charset,h=m.attrs),y&&i.ieMode<10&&n.getElementsByTagName("style").length+n.getElementsByTagName("link").length>=31)return setTimeout(function(){throw new Error("style and link's number is more than 31.ie < 10 can not insert link: "+r)},0),f&&f(),void 0;if(g=a[r]=a[r]||[],g.push([u,f]),g.length>1)return g.node;var x=n.createElement(y?"link":"script"),M=function(){p&&(clearTimeout(p),p=void 0)};h&&i.each(h,function(t,e){x.setAttribute(e,t)}),c&&(x.charset=c),y?(x.href=r,x.rel="stylesheet"):(x.src=r,x.async=!0,v&&x.setAttribute("crossorigin","anonymous")),g.node=x;var b=function(t){var e,n=t;M(),i.each(a[r],function(t){(e=t[n])&&e.call(x)}),delete a[r]},E="onload"in x,L=o.forceCssPoll||s&&536>s||!s&&!i.trident&&!i.gecko;return y&&L&&E&&(E=!1),E?(x.onload=l,x.onerror=function(){x.onerror=null,b(1)}):y?i.pollCss(x,function(){b(0)}):x.onreadystatechange=l,d&&(p=setTimeout(function(){b(1)},d*e)),t||(t=i.docHead()),y?t.appendChild(x):t.insertBefore(x,t.firstChild),x}};t.prototype.initGetScript=e}(feloader),function(t,e){function r(t,e){return function(r){var n={};for(var i in r)n[i]={},n[i][t]=r[i];e.config("modules",n)}}var n=function(){function t(t,e){if(t=s.normalizeSlash(t),e&&"/"!==t.charAt(t.length-1)&&(t+="/"),l){if(s.startsWith(t,"http:")||s.startsWith(t,"//")||s.startsWith(t,"https:")||s.startsWith(t,"file:"))return t;t=l.protocol+"//"+l.host+s.normalizePath(l.pathname,t)}return t}function n(t,e,r){var n=e.getTag()||c.tag||"";return n&&(r&&(n+=r),t+="?t="+n),t}var i=this,o=this.Loader,a=o.Package,s=o.Utils,u=this.Env.host,c=this.Config,l=u.location,f=c.fns;c.loadModsFn=function(t,e){i.getScript(t.uri,e)},c.resolveModFn=function(t){var e,r,i,o,a=t.id,u=t.path,c=t.getPackage();if(!c){var l=s.endsWith(a,".css"),f=s.endsWith(a,".js");return o=l?"css":"js",i="."+o,l||f||(a+=".js"),n(a,t,i)}var d=c.getBase(),h=c.name;return o=t.getType(),i="."+o,u||(s.endsWith(a,i)&&(a=a.slice(0,-i.length)),e=c.getFilter()||"","function"==typeof e?u=e(a,o):"string"==typeof e&&(e&&(e="-"+e),u=a+e+i)),"core"===h?r=d+u:a===h?r=d.substring(0,d.length-1)+e+i:(c.isIgnorePackageNameInUri()&&(u=u.substring(h.length+1)),r=d+u),n(r,t,i)},f.requires=r("requires",i),f.alias=r("alias",i),f.packages=function(r){var n=c.packages;return r===e?n:r?(s.each(r,function(e,r){var i=e.name||r;s.startsWith(i,"/")?i=l.protocol+"//"+l.host+i:(s.startsWith(i,"./")||s.startsWith(i,"../"))&&(i=s.normalizePath(l.href,i)),s.endsWith(i,"/")&&(i=i.slice(0,-1)),e.name=i;var o=e.base||e.path;o&&(e.base=t(o,!0)),n[i]?n[i].reset(e):n[i]=new a(e)}),e):(c.packages={core:n.core},e)},f.modules=function(e){e&&s.each(e,function(e,r){var n=e.uri;n&&(e.uri=t(n)),s.createModule(r,e)})},f.base=function(t){var r=this,n=c.packages.core;return t?(r.config("packages",{core:{base:t}}),e):n&&n.getBase()}};t.prototype.initConfig=n}(feloader),function(t,e){function r(t,e){if(t||"function"!=typeof e)t&&t.requires&&!t.cjs&&(t.cjs=0);else{var r=[];r.length&&(t=t||{},t.requires=r)}return t}function n(t){var e,r,n,i=[];for(e=0,n=t.length;n>e;e++)r=t[e],"exports"===r||"module"===r||"require"===r||i.push(r);return i}function i(t,e){var r=t.indexOf("//"),n="";-1!==r&&(n=t.substring(0,t.indexOf("//")+2)),t=t.substring(n.length).split(/\//),e=e.substring(n.length).split(/\//);for(var i=Math.min(t.length,e.length),o=0;i>o&&t[o]===e[o];o++);var a=n+t.slice(0,o).join("/")+"/";return a=a.replace(/\/\/$/,"/")}function o(t,e,r,n,i,o){if(t&&e.length>1){for(var a=t.length,s=[],u=0;u<e.length;u++)s[u]=e[u].substring(a);return r+t+n+s.join(i)+o}return r+n+e.join(i)+o}var a=function(){function t(t,r,n){function i(){--o||r(s,a)}var o=t&&t.length,a=[],s=[];m(t,function(t){var r,o={timeout:n,success:function(){s.push(t),r&&u&&(p(r.id,u.factory,u.config),u=e),i()},error:function(){a.push(t),i()},charset:t.charset};t.combine||(r=t.mods[0],"css"===r.getType()?r=e:b&&(c=r.id,o.attrs={"data-mod-id":r.id})),d.loadModsFn(t,o)})}function a(t){this.callback=t,this.head=this.tail=e,this.id="loader"+ ++E}function s(){var t,e,r,n,i=document.getElementsByTagName("script");for(e=i.length-1;e>=0;e--)if(n=i[e],"interactive"===n.readyState){t=n;break}return r=t?t.getAttribute("data-mod-id"):c}var u,c,l,f=this.Loader,d=this.Config,h=f.Status,g=f.Utils,p=g.addModule,m=g.each,v=g.getHash,y=h.LOADING,x=h.LOADED,M=h.ERROR,b=g.ieMode&&g.ieMode<10,E=0;a.add=function(t,i,o,a){if("string"==typeof t)if(3===a&&g.isArray(i)){var f=i;i=o,o={requires:n(f),cjs:1}}else 2===a&&i.call&&(o={cjs:1});if(g.isArray(t)&&2===a){var f=t;t=i,i={requires:n(f),cjs:1}}"function"==typeof t||1===a?(o=i,i=t,o=r(o,i),b?(t=s(),t&&p(t,i,o),c=null,l=0):u={factory:i,config:o}):(b?(c=null,l=0):u=e,o=r(o,i),p(t,i,o))};g.mix(a.prototype,{use:function(e){for(var r,n=this,i=d.timeout,o=[],a=0;a<e.length;a++)e[a].id&&o.push(e[a]);e=o,r=n.getComboUris(e),r.css&&t(r.css,function(t,e){m(t,function(t){m(t.mods,function(t){p(t.id,g.noop),t.flush()})}),m(e,function(t){m(t.mods,function(e){var r=e.id+" is not loaded! can not find module in uri: "+t.uri;console.error(r),e.status=M;var n={type:"load",exception:r,module:e};e.error=n,e.onError&&e.onError(n),d.onModuleError&&d.onModuleError(n),e.flush()})})},i),r.js&&t(r.js,function(t){m(r.js,function(t){m(t.mods,function(e){if(!e.factory){var r=e.id+" is not loaded! can not find module in uri: "+t.uri;console.error(r),e.status=M;var n={type:"load",exception:r,module:e};e.error=n,e.onError&&e.onError(n),d.onModuleError&&d.onModuleError(n)}e.flush()})})},i)},calculate:function(t,e,r,n,i){var o,a,s,u,c=this;for(i=i||[],n=n||{},o=0;o<t.length;o++)if(s=t[o],a=s.id,!n[a])if(u=s.status,u!==M)if(d.requireModsPre&&c.calculate(s.getNormalizedRequiredModules(),e,r,n,i),u>x)n[a]=1;else{u===x||s.contains(c)||(u!==y&&(s.status=y,i.push(s)),s.add(c),c.wait(s)),d.requireModsPre||c.calculate(s.getNormalizedRequiredModules(),e,r,n,i),n[a]=1}else e.push(s),n[a]=1;return i},getComboMods:function(t){var e,r,n,o,a,s,u,c,l,f,d,h=t.length,p={},m={};for(e=0;h>e;++e)if(n=t[e],a=n.getType(),d=n.getUri(),o=n.getPackage(),o?(c=o.getBase(),l=o.name,u=o.getCharset(),s=o.getTag(),f=o.getGroup()):c=n.id,o&&o.isCombine()&&f){var y=p[a]||(p[a]={});f=f+"-"+u;var x=y[f]||(y[f]={}),M=0;g.each(x,function(t,e){if(g.isSameOriginAs(e,c)){var r=i(e,c);t.push(n),s&&s!==t.tag&&(t.tag=v(t.tag+s)),delete x[e],x[r]=t,M=1}}),M||(r=x[c]=[n],r.charset=u,r.tag=s||"")}else{var b=m[a]||(m[a]={});(r=b[c])?s&&s!==r.tag&&(r.tag=v(r.tag+s)):(r=b[c]=[],r.charset=u,r.tag=s||""),r.push(n)}return{groups:p,normals:m}},getComboUris:function(t){function r(t,r,n){function a(t){if(r){if(d.useDailyAssets)return t.replace(d.assetsHost,d.dailyAssetsHost);if(d.forceAssetsHost)return t.replace(d.assetsHost,d.forceAssetsHost)}return t}function s(t){L.push({combine:1,uri:a(t),charset:M,mods:y})}function p(){return o(m,v,r,u,c,b)}for(var m,v=[],y=[],x=n.tag,M=n.charset,b=x?"?t="+encodeURIComponent(x)+"."+t:"",E=r.length,L=[],k=0;k<n.length;k++){var q=n[k],w=q.getUri();if(q.getPackage()&&q.getPackage().isCombine()&&g.startsWith(w,r)){var I=w.slice(E).replace(/\?.*$/,"");v.push(I),y.push(q),m===e?m=-1!==I.indexOf("/")?I:"":""!==m&&(m=i(m,I),"/"===m&&(m="")),(v.length>f||p().length>h)&&(v.pop(),y.pop(),s(p()),v=[],y=[],m=e,k--)}else L.push({combine:0,uri:a(w),charset:M,mods:[q]})}v.length&&s(p()),l[t].push.apply(l[t],L)}var n,a,s,u=d.comboPrefix,c=d.comboSep,l={},f=d.comboMaxFileNum,h=d.comboMaxUriLength,p=this.getComboMods(t),m=p.normals,v=p.groups;for(n in m){l[n]=l[n]||[];for(a in m[n])r(n,a,m[n][a])}for(n in v){l[n]=l[n]||[];for(s in v[n])for(a in v[n][s])r(n,a,v[n][s][a])}return l},flush:function(){var t=this;if(t.callback){for(var e=t.head,r=t.callback;e;){var n=e.node,i=n.status;if(!(i>=x||i===M))return;n.remove(t),e=t.head=e.next}t.callback=null,r()}},isCompleteLoading:function(){return!this.head},wait:function(t){var e=this;if(e.head){var r={node:t};e.tail.next=r,e.tail=r}else e.tail=e.head={node:t}}}),f.ComboLoader=a};t.prototype.initComboLoader=a}(feloader),function(t){var e=function(){var e=this.Loader,r=e.Utils,n=r.createModule,i=e.ComboLoader;r.mix(this,{getModule:function(t){return n(t)},getPackage:function(t){return this.Config.packages[t]},add:function(t,e,r){i.add(t,e,r,arguments.length)},use:function(e,n,o){function a(e,n){if(console.error("feloader: "+n+" the following modules error"),console.error(r.map(e,function(t){return t.id})),o){try{o.apply(t,e)}catch(i){setTimeout(function(){throw i},0)}o=null}}function s(){++c;var e=[],i=u.calculate(h,e);if(e.length)a(e,"load");else if(u.isCompleteLoading()){var o=r.initModules(h);if(o){if(n){try{n.apply(t,r.getModulesExports(d))}catch(l){setTimeout(function(){throw l},0)}n=null}}else a(r.collectErrors(h),"init")}else u.callback=s,i.length&&u.use(i)}var u,c=0;if("string"==typeof e&&(e=e.split(/\s*,\s*/)),!e||e&&!e.length)return t;"object"==typeof n&&(o=n.error,n=n.success);for(var l=0;l<e.length;l++){var f=e[l];(r.startsWith(f,"./")||r.startsWith(f,"../"))&&(e[l]=r.normalizePath(location.href,f))}var d=r.createModules(e),h=[];return r.each(d,function(t){h.push.apply(h,t.getNormalizedModules())}),u=new i(s),s(),t},require:function(t){return n(t).getExports()},undef:function(t){var e=n(t),i=e.getNormalizedModules();r.each(i,function(t){t.undef()})}});var o="??",a=",";this.config({comboPrefix:o,comboSep:a,charset:"utf-8",filter:"",lang:"zh-cn"}),this.config("packages",{core:{filter:"",base:"."}})};t.prototype.initLoader=e}(feloader),function(t){var e=function(){};t.prototype.init=e,window.feloader=t=new t;var r=t.Env.host&&t.Env.host.document,n=t.Loader,i=n.Utils,o=function(t){return new Function("return "+t)()},a=function(t,e){var r=new RegExp("^(.*)("+e+")(?:-debug|)?\\.js[^/]*","i"),n=new RegExp("("+e+")(?:-debug|)?\\.js","i"),i=t.src||"";if(!i.match(n))return 0;var a=t.getAttribute("data-config");a=a?o(a):{};var s,u,c=a.comboPrefix,l=a.comboSep,f=i.indexOf(c);if(-1===f)u=i.replace(r,"$1");else{u=i.substring(0,f),"/"!==u.charAt(u.length-1)&&(u+="/"),s=i.substring(f+c.length).split(l);for(var d=0,h=s.length;h>d;d++){var g=s[d];if(g.match(n)){u+=g.replace(r,"$1");break}}}return a.base=a.base||u,a},s=function(t){var e,n,i=r.getElementsByTagName("script");for(e=i.length-1;e>=0;e--)if(n=a(i[e],t))return n;return null};t.init=function(e){var r=e.name;t.config(s(r))},r&&r.getElementsByTagName&&(t.config(i.mix({comboMaxUriLength:2e3,comboMaxFileNum:40},s("feloader"))),t.config("combine",!0)),function(){function e(t){var e;for(e=0;e<t.length;e+=1)t[e](l)}function r(){var t=f;c&&t.length&&(f=[],e(t))}function n(){c||(c=!0,s&&clearInterval(s),r())}function i(t){return c?t(l):f.push(t),i}var o,a,s,u="undefined"!=typeof window&&window.document,c=!u,l=u?document:null,f=[];if(u){if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(window.attachEvent){window.attachEvent("onload",n),a=document.createElement("div");try{o=null===window.frameElement}catch(d){}a.doScroll&&o&&window.external&&(s=setInterval(function(){try{a.doScroll(),n()}catch(t){}},30))}"complete"===document.readyState&&n()}i.load=function(t,e,r,n){n.isBuild?r(null):i(r)},t.ready=i}();var u=window,c=u.require;u.require=function(){t.use.apply(t,arguments)},u.require.config=function(){t.config.apply(t,arguments)};var l=u.define;u.define=function(){t.add.apply(t,arguments)},u.define.amd={},u.KISSY||(u.KISSY=t),t.noConflict=function(){u.require=c,u.define=l},i.ie<10&&t.config({modules:{"mui/zepto/event":{alias:"mui/jquery/jquery"},"mui/zepto/form":{alias:"mui/jquery/jquery"},"mui/zepto/fx":{alias:"mui/jquery/jquery"},"mui/zepto/fx_methods":{alias:"mui/jquery/jquery"},"mui/zepto/gesture":{alias:"mui/jquery/jquery"},"mui/zepto/ie":{alias:"mui/jquery/jquery"},"mui/zepto/selector":{alias:"mui/jquery/jquery"},"mui/zepto/stack":{alias:"mui/jquery/jquery"},"mui/zepto/touch":{alias:"mui/jquery/jquery"},"mui/zepto/zepto":{alias:"mui/jquery/jquery"}}})}(feloader);"use strict";!function(i){window.g_config=window.g_config||{},window.g_config.seed=window.g_config.seed||{},i.config(window.g_config.seed),i.config("combine",!0)}(feloader);var KISSY=function(e){var t=this,n,r=0,i="";function o(e){var t={};for(var r in a){(function(t,r){t[r]=function(t){return n.log(t,r,e)}})(t,r)}return t}var a={debug:10,info:20,warn:30,error:40};n={__BUILD_TIME:"20141210150549",Env:{host:t},Config:{debug:"",fns:{}},version:"1.4.16",config:function(t,r){var i,o,a=this,s,u=n.Config,l=u.fns;if(n.isObject(t)){n.each(t,function(e,t){s=l[t];if(s){s.call(a,e)}else{u[t]=e}})}else{i=l[t];if(r===e){if(i){o=i.call(a)}else{o=u[t]}}else{if(i){o=i.call(a,r)}else{u[t]=r}}}return o},log:function(t,r,i){if(""){var o=1;if(i){var s=n.Config.logger||{},u,l,c,f,d,p,h;r=r||"debug";f=a[r]||a.debug;if(u=s.includes){o=0;for(l=0;l<u.length;l++){c=u[l];h=c.logger;p=a[c.maxLevel]||a.error;d=a[c.minLevel]||a.debug;if(d<=f&&p>=f&&i.match(h)){o=1;break}}}else if(u=s.excludes){o=1;for(l=0;l<u.length;l++){c=u[l];h=c.logger;p=a[c.maxLevel]||a.error;d=a[c.minLevel]||a.debug;if(d<=f&&p>=f&&i.match(h)){o=0;break}}}if(o){t=i+": "+t}}if(typeof console!=="undefined"&&console.log&&o){console[r&&console[r]?r:"log"](t);return t}}return e},getLogger:function(e){return o(e)},error:function(e){if(""){throw e instanceof Error?e:new Error(e)}},guid:function(e){return(e||i)+r++}};if(""){n.Config.logger={excludes:[{logger:/^s\/.*/,maxLevel:"info",minLevel:"debug"}]}}n.Logger={};n.Logger.Level={DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"};return n}();(function(e,t){var n=e.getLogger("s/lang");var r="__MIX_CIRCULAR",i="__~ks_stamped",o=this,a=true,s="",u=Object,l=u.create,c=!{toString:1}.propertyIsEnumerable("toString"),f=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","toLocaleString","valueOf"];h(e,{stamp:function(n,r,o){o=o||i;var a=n[o];if(a){return a}else if(!r){try{a=n[o]=e.guid(o)}catch(s){a=t}}return a},keys:u.keys||function(e){var t=[],n,r;for(n in e){if(e.hasOwnProperty(n)){t.push(n)}}if(c){for(r=f.length-1;r>=0;r--){n=f[r];if(e.hasOwnProperty(n)){t.push(n)}}}return t},mix:function(n,i,o,s,u){if(typeof o==="object"){s=o.whitelist;u=o.deep;o=o.overwrite}if(s&&typeof s!=="function"){var l=s;s=function(n,r){return e.inArray(n,l)?r:t}}if(o===t){o=a}var c=[],f,d=0;m(n,i,o,s,u,c);while(f=c[d++]){delete f[r]}return n},merge:function(t){t=e.makeArray(arguments);var n={},r,i=t.length;for(r=0;r<i;r++){e.mix(n,t[r])}return n},augment:function(n,r){var i=e.makeArray(arguments),o=i.length-2,a=1,s,u,l=i[o],c=i[o+1];i[1]=r;if(!e.isArray(c)){l=c;c=t;o++}if(typeof l!=="boolean"){l=t;o++}for(;a<o;a++){u=i[a];if(s=u.prototype){u=e.mix({},s,true,g)}e.mix(n.prototype,u,l,c)}return n},extend:function(t,r,i,o){if(""){if(!t){n.error("extend r is null")}if(!r){n.error("extend s is null")}if(!r||!t){return t}}var a=r.prototype,s;a.constructor=r;s=p(a,t);t.prototype=e.mix(s,t.prototype);t.superclass=a;if(i){e.mix(s,i)}if(o){e.mix(t,o)}return t},namespace:function(){var t=e.makeArray(arguments),n=t.length,r=null,i,u,l,c=t[n-1]===a&&n--;for(i=0;i<n;i++){l=(s+t[i]).split(".");r=c?o:this;for(u=o[l[0]]===r?1:0;u<l.length;++u){r=r[l[u]]=r[l[u]]||{}}}return r}});function d(){}function p(e,t){var n;if(l){n=l(e)}else{d.prototype=e;n=new d}n.constructor=t;return n}function h(e,t){for(var n in t){e[n]=t[n]}}function m(t,n,i,o,a,s){if(!n||!t){return t}var u,l,c,f;n[r]=t;s.push(n);c=e.keys(n);f=c.length;for(u=0;u<f;u++){l=c[u];if(l!==r){v(l,t,n,i,o,a,s)}}return t}function g(e,n){return e==="constructor"?t:n}function v(n,i,o,s,u,l,c){if(s||!(n in i)||l){var f=i[n],d=o[n];if(f===d){if(f===t){i[n]=f}return}if(u){d=u.call(o,n,d)}if(l&&d&&(e.isArray(d)||e.isPlainObject(d))){if(d[r]){i[n]=d[r]}else{var p=f&&(e.isArray(f)||e.isPlainObject(f))?f:e.isArray(d)?[]:{};i[n]=p;m(p,d,s,u,a,c)}}else if(d!==t&&(s||!(n in i))){i[n]=d}}}})(KISSY);(function(e,t){var n=true,r=Array.prototype,i=r.indexOf,o=r.lastIndexOf,a=r.filter,s=r.every,u=r.some,l=r.map,c=false;e.mix(e,{each:function(n,r,i){if(n){var o,a,s,u=0,l=n&&n.length,f=l===t||e.type(n)==="function";i=i||null;if(f){s=e.keys(n);for(;u<s.length;u++){o=s[u];if(r.call(i,n[o],o,n)===c){break}}}else{for(a=n[0];u<l;a=n[++u]){if(r.call(i,a,u,n)===c){break}}}}return n},indexOf:i?function(e,t){return i.call(t,e)}:function(e,t){for(var n=0,r=t.length;n<r;++n){if(t[n]===e){return n}}return-1},lastIndexOf:o?function(e,t){return o.call(t,e)}:function(e,t){for(var n=t.length-1;n>=0;n--){if(t[n]===e){break}}return n},unique:function(t,n){var r=t.slice();if(n){r.reverse()}var i=0,o,a;while(i<r.length){a=r[i];while((o=e.lastIndexOf(a,r))!==i){r.splice(o,1)}i+=1}if(n){r.reverse()}return r},inArray:function(t,n){return e.indexOf(t,n)>-1},filter:a?function(e,t,n){return a.call(e,t,n||this)}:function(t,n,r){var i=[];e.each(t,function(e,t,o){if(n.call(r||this,e,t,o)){i.push(e)}});return i},map:l?function(e,t,n){return l.call(e,t,n||this)}:function(e,t,n){var r=e.length,i=new Array(r);for(var o=0;o<r;o++){var a=typeof e==="string"?e.charAt(o):e[o];if(a||o in e){i[o]=t.call(n||this,a,o,e)}}return i},reduce:function(e,r,i){var o=e.length;if(typeof r!=="function"){throw new TypeError("callback is not function!")}if(o===0&&arguments.length===2){throw new TypeError("arguments invalid")}var a=0;var s;if(arguments.length>=3){s=i}else{do{if(a in e){s=e[a++];break}a+=1;if(a>=o){throw new TypeError}}while(n)}while(a<o){if(a in e){s=r.call(t,s,e[a],a,e)}a++}return s},every:s?function(e,t,n){return s.call(e,t,n||this)}:function(e,t,r){var i=e&&e.length||0;for(var o=0;o<i;o++){if(o in e&&!t.call(r,e[o],o,e)){return c}}return n},some:u?function(e,t,n){return u.call(e,t,n||this)}:function(e,t,r){var i=e&&e.length||0;for(var o=0;o<i;o++){if(o in e&&t.call(r,e[o],o,e)){return n}}return c},makeArray:function(t){if(t==null){return[]}if(e.isArray(t)){return t}var n=typeof t.length,r=typeof t;if(n!=="number"||t.alert||r==="string"||r==="function"&&!("item"in t&&n==="number")){return[t]}var i=[];for(var o=0,a=t.length;o<a;o++){i[o]=t[o]}return i}})})(KISSY);(function(e,t){var n=e.getLogger("s/lang");var r="&",i="",o="=",a=true,s=16,u={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},l={},c,f,d=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var e in u){l[u[e]]=e}})();function p(e){var t=typeof e;return e==null||t!=="object"&&t!=="function"}function h(){if(c){return c}var t=i;e.each(u,function(e){t+=e+"|"});t=t.slice(0,-1);c=new RegExp(t,"g");return c}function m(){if(f){return f}var t=i;e.each(l,function(e){t+=e+"|"});t+="&#(\\d{1,5});";f=new RegExp(t,"g");return f}e.mix(e,{urlEncode:function(e){return encodeURIComponent(String(e))},urlDecode:function(e){return decodeURIComponent(e.replace(/\+/g," "))},fromUnicode:function(e){return e.replace(/\\u([a-f\d]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,s))})},escapeHtml:function(e){return(e+"").replace(h(),function(e){return l[e]})},escapeRegExp:function(e){return e.replace(d,"\\$&")},unEscapeHtml:function(e){return e.replace(m(),function(e,t){return u[e]||String.fromCharCode(+t)})},param:function(n,s,u,l){s=s||r;u=u||o;if(l===t){l=a}var c=[],f,d,h,m,g,v=e.urlEncode;for(f in n){g=n[f];f=v(f);if(p(g)){c.push(f);if(g!==t){c.push(u,v(g+i))}c.push(s)}else if(e.isArray(g)&&g.length){for(d=0,m=g.length;d<m;++d){h=g[d];if(p(h)){c.push(f,l?v("[]"):i);if(h!==t){c.push(u,v(h+i))}c.push(s)}}}}c.pop();return c.join(i)},unparam:function(i,a,s){if(typeof i!=="string"||!(i=e.trim(i))){return{}}a=a||r;s=s||o;var u={},l,c=e.urlDecode,f=i.split(a),d,p,h=0,m=f.length;for(;h<m;++h){l=f[h].indexOf(s);if(l===-1){d=c(f[h]);p=t}else{d=c(f[h].substring(0,l));p=f[h].substring(l+1);try{p=c(p)}catch(g){n.error("decodeURIComponent error : "+p);n.error(g)}if(e.endsWith(d,"[]")){d=d.substring(0,d.length-2)}}if(d in u){if(e.isArray(u[d])){u[d].push(p)}else{u[d]=[u[d],p]}}else{u[d]=p}}return u}});e.escapeHTML=e.escapeHtml;e.unEscapeHTML=e.unEscapeHtml})(KISSY);(function(e,t){function n(e,t,n){function r(){}var i=[].slice,o=i.call(arguments,3),a=function(){var a=i.call(arguments);return t.apply(this instanceof r?this:n||this,e?a.concat(o):o.concat(a))};r.prototype=t.prototype;a.prototype=new r;return a}e.mix(e,{noop:function(){},bind:n(0,n,null,0),rbind:n(0,n,null,1),later:function(t,n,r,i,o){n=n||0;var a=t,s=e.makeArray(o),u,l;if(typeof t==="string"){a=i[t]}if(!a){e.error("method undefined")}u=function(){a.apply(i,s)};l=r?setInterval(u,n):setTimeout(u,n);return{id:l,interval:r,cancel:function(){if(this.interval){clearInterval(l)}else{clearTimeout(l)}}}},throttle:function(t,n,r){n=n||150;if(n===-1){return function(){t.apply(r||this,arguments)}}var i=e.now();return function(){var o=e.now();if(o-i>n){i=o;t.apply(r||this,arguments)}}},buffer:function(t,n,r){n=n||150;if(n===-1){return function(){t.apply(r||this,arguments)}}var i=null;function o(){o.stop();i=e.later(t,n,0,r||this,arguments)}o.stop=function(){if(i){i.cancel();i=0}};return o}})})(KISSY);(function(e,t){var n=true,r=false,i="__~ks_cloned",o="__~ks_compared";e.mix(e,{equals:function(e,r,i,o){i=i||[];o=o||[];if(e===r){return n}if(e===t||e===null||r===t||r===null){return e==null&&r==null}if(e instanceof Date&&r instanceof Date){return e.getTime()===r.getTime()}if(typeof e==="string"&&typeof r==="string"){return e===r}if(typeof e==="number"&&typeof r==="number"){return e===r}if(typeof e==="object"&&typeof r==="object"){return s(e,r,i,o)}return e===r},clone:function(n,r){var o={},s=a(n,r,o);e.each(o,function(e){e=e.input;if(e[i]){try{delete e[i]}catch(n){e[i]=t}}});o=null;return s},now:Date.now||function(){return+new Date}});function a(t,n,o){var s=t,u,l,c,f;if(!t){return s}if(t[i]){return o[t[i]].destination}else if(typeof t==="object"){var d=t.constructor;if(e.inArray(d,[Boolean,String,Number,Date,RegExp])){s=new d(t.valueOf())}else if(u=e.isArray(t)){s=n?e.filter(t,n):t.concat()}else if(l=e.isPlainObject(t)){s={}}t[i]=f=e.guid("c");o[f]={destination:s,input:t}}if(u){for(var p=0;p<s.length;p++){s[p]=a(s[p],n,o)}}else if(l){for(c in t){if(c!==i&&(!n||n.call(t,t[c],c,t)!==r)){s[c]=a(t[c],n,o)}}}return s}function s(r,i,a,s){if(r[o]===i&&i[o]===r){return n}r[o]=i;i[o]=r;var u=function(e,n){return e!==null&&e!==t&&e[n]!==t};for(var l in i){if(!u(r,l)&&u(i,l)){a.push("expected has key "+l+'", but missing from actual.')}}for(l in r){if(!u(i,l)&&u(r,l)){a.push('expected missing key "'+l+'", but present in actual.')}}for(l in i){if(l===o){continue}if(!e.equals(r[l],i[l],a,s)){s.push('"'+l+'" was "'+(i[l]?i[l].toString():i[l])+'" in expected, but was "'+(r[l]?r[l].toString():r[l])+'" in actual.')}}if(e.isArray(r)&&e.isArray(i)&&r.length!==i.length){s.push("arrays were not the same length")}delete r[o];delete i[o];return a.length===0&&s.length===0}})(KISSY);(function(e,t){var n=/^[\s\xa0]+|[\s\xa0]+$/g,r=String.prototype.trim,i=/\\?\{([^{}]+)\}/g,o="";e.mix(e,{trim:r?function(e){return e==null?o:r.call(e)}:function(e){return e==null?o:(e+"").replace(n,o)},substitute:function(e,n,r){if(typeof e!=="string"||!n){return e}return e.replace(r||i,function(e,r){if(e.charAt(0)==="\\"){return e.slice(1)}return n[r]===t?o:n[r]})},ucfirst:function(e){e+="";return e.charAt(0).toUpperCase()+e.substring(1)},startsWith:function(e,t){return e.lastIndexOf(t,0)===0},endsWith:function(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}})})(KISSY);(function(e,t){var n={},r=false,i=e.noop,o=Object.prototype,a=o.toString;function s(e,t){return o.hasOwnProperty.call(e,t)}e.mix(e,{type:function(e){return e==null?String(e):n[a.call(e)]||"object"},isNull:function(e){return e===null},isUndefined:function(e){return e===t},isEmptyObject:function(e){for(var n in e){if(n!==t){return r}}return true},isPlainObject:function(n){if(!n||e.type(n)!=="object"||n.nodeType||n.window==n){return r}var i,o;try{if((o=n.constructor)&&!s(n,"constructor")&&!s(o.prototype,"isPrototypeOf")){return r}}catch(a){return r}for(i in n){}return i===t||s(n,i)}});if(""){e.mix(e,{isBoolean:i,isNumber:i,isString:i,isFunction:i,isArray:i,isDate:i,isRegExp:i,isObject:i})}e.each("Boolean Number String Function Date RegExp Object Array".split(" "),function(t,r){n["[object "+t+"]"]=r=t.toLowerCase();e["is"+t]=function(t){return e.type(t)===r}});e.isArray=Array.isArray||e.isArray})(KISSY);(function(e){var t=[];var n=0;function r(){var r=0,i;while(i=t[r++]){if(""){i()}else{try{i()}catch(o){e.log(o.stack||o,"error");setTimeout(function(){throw o},0)}}}if(r>1){t=[]}n=0}e.setImmediate=function(e){t.push(e);if(!n){n=1;i()}};var i;if(typeof setImmediate==="function"){i=function(){setImmediate(r)}}else if(typeof process!=="undefined"&&typeof process.nextTick==="function"){i=function(){process.nextTick(r)}}else if(typeof MessageChannel!=="undefined"){var o=new MessageChannel;o.port1.onmessage=function(){i=a;o.port1.onmessage=r;r()};var a=function(){o.port2.postMessage(0)};i=function(){setTimeout(r,0);a()}}else{i=function(){setTimeout(r,0)}}})(KISSY);(function(e){var t=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/;function n(e,t){var n=0,r=e.length-1,i=[],o;for(;r>=0;r--){o=e[r];if(o!=="."){if(o===".."){n++}else if(n){n--}else{i[i.length]=o}}}if(t){for(;n--;n){i[i.length]=".."}}i=i.reverse();return i}var r=e.Path={resolve:function(){var t="",r,i,o=arguments,a,s=0;for(i=o.length-1;i>=0&&!s;i--){a=o[i];if(typeof a!=="string"||!a){continue}t=a+"/"+t;s=a.charAt(0)==="/"}r=n(e.filter(t.split("/"),function(e){return!!e}),!s).join("/");return(s?"/":"")+r||"."},normalize:function(t){var r=t.charAt(0)==="/",i=t.slice(-1)==="/";t=n(e.filter(t.split("/"),function(e){return!!e}),!r).join("/");if(!t&&!r){t="."}if(t&&i){t+="/"}return(r?"/":"")+t},join:function(){var t=e.makeArray(arguments);return r.normalize(e.filter(t,function(e){return e&&typeof e==="string"}).join("/"))},relative:function(t,n){t=r.normalize(t);n=r.normalize(n);var i=e.filter(t.split("/"),function(e){return!!e}),o=[],a,s,u=e.filter(n.split("/"),function(e){return!!e}),l=Math.min(i.length,u.length);for(a=0;a<l;a++){if(i[a]!==u[a]){break}}s=a;while(a<i.length){o.push("..");a++}o=o.concat(u.slice(s));o=o.join("/");return o},basename:function(e,n){var r=e.match(t)||[],i;i=r[3]||"";if(n&&i&&i.slice(-1*n.length)===n){i=i.slice(0,-1*n.length)}return i},dirname:function(e){var n=e.match(t)||[],r=n[1]||"",i=n[2]||"";if(!r&&!i){return"."}if(i){i=i.substring(0,i.length-1)}return r+i},extname:function(e){return(e.match(t)||[])[4]||""}}})(KISSY);(function(e,t){var n=e.getLogger("s/uri");var r=/[#\/\?@]/g,i=/[#\?]/g,o=/[#@]/g,a=/#/g,s=new RegExp("^"+"(?:([\\w\\d+.-]+):)?"+"(?://"+"(?:([^/?#@]*)@)?"+"("+"[\\w\\d\\-\\u0100-\\uffff.+%]*"+"|"+"\\[[^\\]]+\\]"+")"+"(?::([0-9]+))?"+")?"+"([^?#]+)?"+"(?:\\?([^#]*))?"+"(?:#(.*))?"+"$"),u=e.Path,l={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};function c(t){if(!t._queryMap){t._queryMap=e.unparam(t._query)}}function f(e){this._query=e||""}f.prototype={constructor:f,clone:function(){return new f(this.toString())},reset:function(e){var t=this;t._query=e||"";t._queryMap=null;return t},count:function(){var t=this,n=0,r,i;c(t);r=t._queryMap;for(i in r){if(e.isArray(r[i])){n+=r[i].length}else{n++}}return n},has:function(t){var n=this,r;c(n);r=n._queryMap;if(t){return t in r}else{return!e.isEmptyObject(r)}},get:function(e){var t=this,n;c(t);n=t._queryMap;if(e){return n[e]}else{return n}},keys:function(){var t=this;c(t);return e.keys(t._queryMap)},set:function(t,n){var r=this,i;c(r);i=r._queryMap;if(typeof t==="string"){r._queryMap[t]=n}else{if(t instanceof f){t=t.get()}e.each(t,function(e,t){i[t]=e})}return r},remove:function(e){var t=this;c(t);if(e){delete t._queryMap[e]}else{t._queryMap={}}return t},add:function(e,n){var r=this,i,o;if(typeof e==="string"){c(r);i=r._queryMap;o=i[e];if(o===t){o=n}else{o=[].concat(o).concat(n)}i[e]=o}else{if(e instanceof f){e=e.get()}for(var a in e){r.add(a,e[a])}}return r},toString:function(n){var r=this;c(r);return e.param(r._queryMap,t,t,n)}};function d(e){return e.length===1?"0"+e:e}function p(e,t){return e.toLowerCase()===t.toLowerCase()}function h(e,t){return encodeURI(e).replace(t,function(e){return"%"+d(e.charCodeAt(0).toString(16))})}function m(t){if(t instanceof m){return t.clone()}var r,i=this;e.mix(i,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});r=m.getComponents(t);e.each(r,function(t,r){t=t||"";if(r==="query"){i.query=new f(t)}else{try{t=e.urlDecode(t)}catch(o){n.error(o+"urlDecode error : "+t)}i[r]=t}});return i}m.prototype={constructor:m,clone:function(){var t=new m,n=this;e.each(l,function(e,r){t[r]=n[r]});t.query=t.query.clone();return t},resolve:function(t){if(typeof t==="string"){t=new m(t)}var n=this,r=0,i,o=["scheme","userInfo","hostname","port","path","query","fragment"],a=n.clone();e.each(o,function(n){if(n==="path"){if(r){a[n]=t[n]}else{var o=t.path;if(o){r=1;if(!e.startsWith(o,"/")){if(a.hostname&&!a.path){o="/"+o}else if(a.path){i=a.path.lastIndexOf("/");if(i!==-1){o=a.path.slice(0,i+1)+o}}}a.path=u.normalize(o)}}}else if(n==="query"){if(r||t.query.toString()){a.query=t.query.clone();r=1}}else if(r||t[n]){a[n]=t[n];r=1}});return a},getScheme:function(){return this.scheme},setScheme:function(e){this.scheme=e;return this},getHostname:function(){return this.hostname},setHostname:function(e){this.hostname=e;return this},setUserInfo:function(e){this.userInfo=e;return this},getUserInfo:function(){return this.userInfo},setPort:function(e){this.port=e;return this},getPort:function(){return this.port},setPath:function(e){this.path=e;return this},getPath:function(){return this.path},setQuery:function(t){if(typeof t==="string"){if(e.startsWith(t,"?")){t=t.slice(1)}t=new f(h(t,o))}this.query=t;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(t){var n=this;if(e.startsWith(t,"#")){t=t.slice(1)}n.fragment=t;return n},isSameOriginAs:function(e){var t=this;return p(t.hostname,e.hostname)&&p(t.scheme,e.scheme)&&p(t.port,e.port)},toString:function(t){var n=[],o=this,s,l,c,f,d,p,m;if(s=o.scheme){n.push(h(s,r));n.push(":")}if(l=o.hostname){n.push("//");if(m=o.userInfo){n.push(h(m,r));n.push("@")}n.push(encodeURIComponent(l));if(f=o.port){n.push(":");n.push(f)}}if(c=o.path){if(l&&!e.startsWith(c,"/")){c="/"+c}c=u.normalize(c);n.push(h(c,i))}if(p=o.query.toString.call(o.query,t)){n.push("?");n.push(p)}if(d=o.fragment){n.push("#");n.push(h(d,a))}return n.join("")}};m.Query=f;m.getComponents=function(t){t=t||"";var n=t.match(s)||[],r={};e.each(l,function(e,t){r[t]=n[e]});return r};e.Uri=m})(KISSY);(function(e,t){var n=e.Env.host,r=n.document,i=n.navigator,o=i&&i.userAgent||"";function a(e){var t=0;return parseFloat(e.replace(/\./g,function(){return t++===0?".":""}))}function s(e,t){var n,r;t[n="trident"]=.1;if((r=e.match(/Trident\/([\d.]*)/))&&r[1]){t[n]=a(r[1])}t.core=n}function u(e){var t,n;if((t=e.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(n=t[1]||t[2])){return a(n)}return 0}function l(e){var n="",i,o=n,l=n,c,f=[6,9],d,p,h,m="{{version}}",g="<!--[if IE "+m+"]><"+"s></s><![endif]-->",v=r&&r.createElement("div"),b=[];var y={webkit:t,trident:t,gecko:t,presto:t,chrome:t,safari:t,firefox:t,ie:t,ieMode:t,opera:t,mobile:t,core:t,shell:t,phantomjs:t,os:t,ipad:t,iphone:t,ipod:t,ios:t,android:t,nodejs:t};if(v&&v.getElementsByTagName){v.innerHTML=g.replace(m,"");b=v.getElementsByTagName("s")}if(b.length>0){s(e,y);for(p=f[0],h=f[1];p<=h;p++){v.innerHTML=g.replace(m,p);if(b.length>0){y[l="ie"]=p;break}}if(!y.ie&&(d=u(e))){y[l="ie"]=d}}else{if((c=e.match(/AppleWebKit\/*\s*([\d.]*)/))&&c[1]){y[o="webkit"]=a(c[1]);if((c=e.match(/OPR\/(\d+\.\d+)/))&&c[1]){y[l="opera"]=a(c[1])}else if((c=e.match(/Chrome\/([\d.]*)/))&&c[1]){y[l="chrome"]=a(c[1])}else if((c=e.match(/\/([\d.]*) Safari/))&&c[1]){y[l="safari"]=a(c[1])}if(/ Mobile\//.test(e)&&e.match(/iPad|iPod|iPhone/)){y.mobile="apple";c=e.match(/OS ([^\s]*)/);if(c&&c[1]){y.ios=a(c[1].replace("_","."))}i="ios";c=e.match(/iPad|iPod|iPhone/);if(c&&c[0]){y[c[0].toLowerCase()]=y.ios}}else if(/ Android/i.test(e)){if(/Mobile/.test(e)){i=y.mobile="android"}c=e.match(/Android ([^\s]*);/);if(c&&c[1]){y.android=a(c[1])}}else if(c=e.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/)){y.mobile=c[0].toLowerCase()}if((c=e.match(/PhantomJS\/([^\s]*)/))&&c[1]){y.phantomjs=a(c[1])}}else{if((c=e.match(/Presto\/([\d.]*)/))&&c[1]){y[o="presto"]=a(c[1]);if((c=e.match(/Opera\/([\d.]*)/))&&c[1]){y[l="opera"]=a(c[1]);if((c=e.match(/Opera\/.* Version\/([\d.]*)/))&&c[1]){y[l]=a(c[1])}if((c=e.match(/Opera Mini[^;]*/))&&c){y.mobile=c[0].toLowerCase()}else if((c=e.match(/Opera Mobi[^;]*/))&&c){y.mobile=c[0]}}}else{if(d=u(e)){y[l="ie"]=d;s(e,y)}else{if(c=e.match(/Gecko/)){y[o="gecko"]=.1;if((c=e.match(/rv:([\d.]*)/))&&c[1]){y[o]=a(c[1]);if(/Mobile|Tablet/.test(e)){y.mobile="firefox"}}if((c=e.match(/Firefox\/([\d.]*)/))&&c[1]){y[l="firefox"]=a(c[1])}}}}}}if(!i){if(/windows|win32/i.test(e)){i="windows"}else if(/macintosh|mac_powerpc/i.test(e)){i="macintosh"}else if(/linux/i.test(e)){i="linux"}else if(/rhino/i.test(e)){i="rhino"}}y.os=i;y.core=y.core||o;y.shell=l;y.ieMode=y.ie&&r.documentMode||y.ie;return y}var c=KISSY.UA=l(o);if(typeof process==="object"){var f,d;if((f=process.versions)&&(d=f.node)){c.os=process.platform;c.nodejs=a(d)}}c.getDescriptorFromUserAgent=l;var p=["webkit","trident","gecko","presto","chrome","safari","firefox","ie","opera"],h=r&&r.documentElement,m="";if(h){e.each(p,function(e){var t=c[e];if(t){m+=" ks-"+e+(parseInt(t)+"");m+=" ks-"+e}});if(e.trim(m)){h.className=e.trim(h.className+m)}}})(KISSY);(function(e,t){var n=e.Env,r=n.host,i=e.UA,o=["","Webkit","Moz","O","ms"],a=r.document||{},s,u,l,c,f,d,p,h=a.documentElement,m,g=true,v=false,b="ontouchstart"in a&&!i.phantomjs,y=i.ieMode;if(h){if(h.querySelector&&y!==8){v=true}m=h.style;e.each(o,function(e){var n=e?e+"Transition":"transition",r=e?e+"Transform":"transform";if(f===t&&n in m){f=e;l=n}if(d===t&&r in m){d=e;c=r}});g="classList"in h;var T=r.navigator||{};s="msPointerEnabled"in T;u="pointerEnabled"in T;if(c){try{var S=a.createElement("p");h.insertBefore(S,h.firstChild);S.style[c]="translate3d(1px,1px,1px)";var _=r.getComputedStyle(S);var E=_.getPropertyValue(c)||_[c];h.removeChild(S);p=E!==t&&E.length>0&&E!=="none"}catch(x){p=true}}}var N={};function C(e){if(N[e]){return N[e]}if(!m||e in m){N[e]={name:e,prefix:""}}else{var t=e.charAt(0).toUpperCase()+e.slice(1),n,r=o.length;while(r--){n=o[r]+t;if(n in m){N[e]={name:n,prefix:o[r]}}}N[e]=N[e]||{name:e,prefix:false}}return N[e]}e.Features={isMsPointerSupported:function(){return s},isPointerSupported:function(){return u},isTouchEventSupported:function(){return b},isTouchGestureSupported:function(){return b||u||s},isDeviceMotionSupported:function(){return!!r.DeviceMotionEvent},isHashChangeSupported:function(){return"onhashchange"in r&&(!y||y>7)},isTransitionSupported:function(){return f!==t},isTransformSupported:function(){return d!==t},isTransform3dSupported:function(){return p},isClassListSupported:function(){return g},isQuerySelectorSupported:function(){return!e.config("dom/selector")&&v},isIELessThan:function(e){return!!(y&&y<e)},getTransitionPrefix:function(){return f},getTransformPrefix:function(){return d},getTransitionProperty:function(){return l},getTransformProperty:function(){return c},getVendorCssPropPrefix:function(e){return C(e).prefix},getVendorCssPropName:function(e){return C(e).name}}})(KISSY);(function(e,t){function n(t){if(t){return function(){var n=[].slice.call(arguments);n.unshift(e);return t.apply(e,n)}}}e.mix(e,t);e.config=function(e,n){t.config(e,n)};e.use=e.require=function(r,i,o){if(typeof i==="object"){o=i.error;i=i.success}t.use(r,n(i),n(o));return e};e.add=function(r,i,o){var a=arguments.length;if(a===3&&e.isArray(i)){t.add(r,i,n(o))}else if(e.isFunction(i)){t.add(r,n(i),o)}else if(a===1){t.add(n(r))}return e};t.config({debug:false,base:"//g.alicdn.com/mui/kissy/4.0.6/"});t.config({packages:{core:{filter:"min"}}});window.S=e})(KISSY,feloader);(function(e,t){var n=e.getLogger("s/web");var r=e.Env.host,i=e.UA,o=r.document,a=o&&o.documentElement,s=r.location,u="",l=0,c=[],f=500,d=40,p=/^#?([\w-]+)$/,h=/\S/,m=!!(o&&o.addEventListener),g="DOMContentLoaded",v="readystatechange",b="load",y="complete",T=m?function(e,t,n){e.addEventListener(t,n,false)}:function(e,t,n){e.attachEvent("on"+t,n)},S=m?function(e,t,n){e.removeEventListener(t,n,false)}:function(e,t,n){e.detachEvent("on"+t,n)};e.mix(e,{isWindow:function(e){return e!=null&&e==e.window},parseXML:function(i){if(i.documentElement){return i}var o;try{if(r.DOMParser){o=(new DOMParser).parseFromString(i,"text/xml")}else{o=new ActiveXObject("Microsoft.XMLDOM");o.async=false;o.loadXML(i)}}catch(a){n.error("parseXML error :");n.error(a);o=t}if(!o||!o.documentElement||o.getElementsByTagName("parsererror").length){e.error("Invalid XML: "+i)}return o},globalEval:function(e){if(e&&h.test(e)){if(r.execScript){r.execScript(e)}else{(function(e){r.eval.call(r,e)})(e)}}},ready:function(t){if(l){try{t(e)}catch(n){e.log(n.stack||n,"error");setTimeout(function(){throw n},0)}}else{c.push(t)}return this},available:function(t,n){t=(t+u).match(p)[1];var r=1;var i=e.later(function(){if(++r>f){i.cancel();return}var e=o.getElementById(t);if(e){n(e);i.cancel()}},d,true)}});function _(){if(l){return}if(o&&!i.nodejs){S(r,b,_)}l=1;for(var t=0;t<c.length;t++){try{c[t](e)}catch(n){e.log(n.stack||n,"error");setTimeout(function(){throw n},0)}}}function E(){if(!o||o.readyState===y){_();return}T(r,b,_);if(m){var e=function(){S(o,g,e);_()};T(o,g,e)}else{var t=function(){if(o.readyState===y){S(o,v,t);_()}};T(o,v,t);var n,i=a&&a.doScroll;try{n=r.frameElement===null}catch(s){n=false}if(i&&n){var u=function(){try{i("left");_()}catch(e){setTimeout(u,d)}};u()}}}if(s&&(s.search||u).indexOf("ks-debug")!==-1){e.Config.debug=true}E();if(i.ie){try{o.execCommand("BackgroundImageCache",false,true)}catch(x){}}})(KISSY,undefined);(function(e){e.config({modules:{core:{alias:["dom","event","io","anim","base","node","json","ua","cookie"]},ajax:{alias:"io"},"rich-base":{alias:"base"}}});if(typeof location!=="undefined"){var t=e.startsWith(location.href,"https");var n=t?"https://s.tbcdn.cn/s/kissy/":"http://a.tbcdn.cn/s/kissy/";e.config({packages:{gallery:{base:n},kg:{base:"//g.alicdn.com/"},mobile:{base:n}}})}})(KISSY);(function(e,t,n){e({"anim/transition?":{alias:KISSY.Features.isTransitionSupported()?"anim/transition":""}});e({anim:{requires:["anim/base","anim/timer","anim/transition?"]}});e({"anim/base":{requires:["dom","promise"]}});e({"anim/timer":{requires:["dom","anim/base"]}});e({"anim/transition":{requires:["dom","anim/base"]}});e({attribute:{requires:["event/custom"]}});e({base:{requires:["attribute"]}});e({button:{requires:["node","component/control"]}});e({color:{requires:["attribute"]}});e({combobox:{requires:["node","component/control","menu","attribute","io"]}});e({"component/container":{requires:["component/control","component/manager"]}});e({"component/control":{requires:["node","base","promise","component/manager","xtemplate/runtime"]}});e({"component/extension/align":{requires:["node"]}});e({"component/extension/content-render":{requires:["component/extension/content-xtpl"]}});e({"component/extension/delegate-children":{requires:["node","component/manager"]}});e({"component/plugin/drag":{requires:["dd"]}});e({"component/plugin/resize":{requires:["resizable"]}});e({"date/format":{requires:["date/gregorian","i18n!date"]}});e({"date/gregorian":{requires:["i18n!date"]}});e({"date/picker":{requires:["node","date/gregorian","i18n!date/picker","component/control","date/format","date/picker-xtpl"]}});e({"date/popup-picker":{requires:["date/picker-xtpl","date/picker","component/extension/shim","component/extension/align"]}});e({dd:{requires:["node","base"]}});e({"dd/plugin/constrain":{requires:["node","base"]}});e({"dd/plugin/proxy":{requires:["node","dd","base"]}});e({"dd/plugin/scroll":{requires:["node","dd","base"]}});e({"dom/basic":{alias:["dom/base",t.isIELessThan(9)?"dom/ie":"",t.isClassListSupported()?"":"dom/class-list"]},dom:{alias:["dom/basic",!t.isQuerySelectorSupported()?"dom/selector":""]}});e({"dom/base":{requires:["ua"]}});e({"dom/class-list":{requires:["dom/base"]}});e({"dom/ie":{requires:["dom/base"]}});e({"dom/selector":{requires:["dom/basic"]}});e({editor:{requires:["node","html-parser","component/control","ua"]}});e({event:{requires:["event/dom","event/custom"]}});e({"event/custom":{requires:["event/base"]}});e({"event/dom":{alias:["event/dom/base",t.isTouchGestureSupported()?"event/dom/touch":"",t.isDeviceMotionSupported()?"event/dom/shake":"",t.isHashChangeSupported()?"":"event/dom/hashchange",t.isIELessThan(9)?"event/dom/ie":"",n.ie?"":"event/dom/focusin"]}});e({"event/dom/base":{requires:["event/base","dom"]}});e({"event/dom/focusin":{requires:["event/dom/base"]}});e({"event/dom/hashchange":{requires:["event/dom/base","dom"]}});e({"event/dom/ie":{requires:["event/dom/base","dom"]}});e({"event/dom/shake":{requires:["event/dom/base"]}});e({"event/dom/touch":{requires:["event/dom/base","dom"]}});e({"filter-menu":{requires:["menu","component/extension/content-xtpl","component/extension/content-render"]}});e({io:{requires:["dom","event/custom","promise","event/dom"]}});e({kison:{requires:["base"]}});e({menu:{requires:["node","component/container","component/extension/delegate-children","component/control","component/extension/content-render","component/extension/content-xtpl","component/extension/align","component/extension/shim"]}});e({menubutton:{requires:["node","button","component/extension/content-xtpl","component/extension/content-render","menu"]}});e({mvc:{requires:["io","json","attribute","node"]}});e({node:{requires:["dom","event/dom","anim"]}});e({overlay:{requires:["component/container","component/extension/shim","component/extension/align","node","component/extension/content-xtpl","component/extension/content-render"]}});e({resizable:{requires:["node","base","dd"]}});e({"resizable/plugin/proxy":{requires:["node","base"]}});e({"scroll-view":{alias:t.isTouchGestureSupported()?"scroll-view/drag":"scroll-view/base"}});e({"scroll-view/base":{requires:["node","anim","component/container","component/extension/content-render"]}});e({"scroll-view/drag":{requires:["scroll-view/base","node","anim"]}});e({"scroll-view/plugin/pull-to-refresh":{requires:["base"]}});e({"scroll-view/plugin/scrollbar":{requires:["base","node","component/control"]}});e({separator:{requires:["component/control"]}});e({"split-button":{requires:["component/container","button","menubutton"]}});e({stylesheet:{requires:["dom"]}});e({swf:{requires:["dom","json","attribute"]}});e({tabs:{requires:["component/container","toolbar","button"]}});e({toolbar:{requires:["component/container","component/extension/delegate-children","node"]}});e({tree:{requires:["node","component/container","component/extension/content-xtpl","component/extension/content-render","component/extension/delegate-children"]}});e({xtemplate:{requires:["xtemplate/runtime","xtemplate/compiler"]}});e({"xtemplate/compiler":{requires:["xtemplate/runtime"]}});e({"xtemplate/runtime":{requires:["path"]}})})(function(e){KISSY.config("modules",e)},KISSY.Features,KISSY.UA);(function(e){e.add("ua",function(){return e.UA});e.add("uri",function(){return e.Uri});e.add("path",function(){return e.Path});var t=e.UA,n=e.Env,r=n.host,i=(t.nodejs&&typeof global==="object"?global:r).JSON;if(t.ieMode<9){i=null}if(i){e.add("json",function(){e.JSON=i;return i});e.parseJson=function(e){return i.parse(e)}}else{var o=/^[\],:{}\s]*$/,a=/(?:^|:|,)(?:\s*\[)+/g,s=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,u=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g;e.parseJson=function(t){if(t===null){return t}if(typeof t==="string"){t=e.trim(t);if(t){if(o.test(t.replace(s,"@").replace(u,"]").replace(a,""))){return new Function("return "+t)()}}}return e.error("Invalid Json: "+t)}}if(e.UA.nodejs){e.KISSY=e;module.exports=e}})(KISSY);if(typeof define==="function"&&define.amd){define("mui/kissy/seed-min",[],function(){return KISSY})}!function(){(0,window.require)("mui/babel-polyfill/index",function(){function e(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function n(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var t=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}();!function(){function r(e,n){return Object.prototype.toString.call(n)==="[object "+e+"]"}function o(e){return[].slice.call(e)}function i(e,n){var t=e.getBoundingClientRect();return!(!t.width&&!t.height||t.top-window.innerHeight>=n||t.bottom+n<=0||t.right<=0||t.left-window.innerWidth>=0)}function a(e){var n=void 0;return n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,"none"===n.display||"0px"===n.height&&"0px"===n.width}function u(e){if(!e||!e.length)return console&&console.error("targets is invaild...");if(e&&1===e.length)return e[0].mods;var n=void 0;e.map(function(e){"sort"===e.type&&(n=e)}),n||(n=e[0]);var t=e.indexOf(n);e.splice(t,1);for(var r=n.mods.slice(),o=function(n){var t=r[n],o=!1;e.map(function(e){e.mods.map(function(e){t.moduleId===e.moduleId&&(o=!0)})}),o||r.splice(n,1)},i=r.length-1;i>=0;i--)o(i);return r}function d(){return location.href.indexOf("wh_debugloader")>0&&location.href.indexOf("?")>0}function c(){var e=navigator.userAgent.toLowerCase().match(/msie ([\d.]+)/),n=!1;return e&&e[1]&&("6.0"==e[1]||"7.0"==e[1])&&(n=!0),n}function s(){var e=void 0;try{var n=document.getElementById("J_floorSortCfg").value;e=JSON.parse(n)}catch(t){e={"enable":!1}}return e}function l(){var e=void 0;try{var n=document.getElementById("J_modsAreaCfg").value;e=JSON.parse(n)}catch(t){e={"enable":!1}}return e}function f(e){return((window.$zebra||{}).components||[]).filter(function(n){return n.moduleId===e})[0]||{}}function m(){var e=void 0;try{var n=document.getElementById("J_modsJuCubeCfg").value;e=JSON.parse(n)}catch(t){e={"enable":!1}}return e}function m(){var e=void 0;try{var n=document.getElementById("J_modsJuCubeCfg").value;e=JSON.parse(n)}catch(t){e={"enable":!1}}return e}function g(){var e=void 0;try{var n=document.getElementById("J_modsJupSortCfg").value;e=JSON.parse(n)}catch(t){e={"enable":!1}}return e}function v(e,n){var t=window.localStorage;try{t&&t.setItem(e,JSON.stringify(n))}catch(r){console.error("set cache error")}}function p(e){var n=window.localStorage;try{if(n)return JSON.parse(n.getItem(e))}catch(t){console.error("get cache error")}}function w(e){function n(e){var n=void 0;for(n in e)if(e[n].enable)return!0;return!1}function t(e,n,t){var r=null,o=[],i=n.cityCode||n.city_id,a=n.regionCode||n.region_id,u=n.countryCode||n.country_id;return e.filter(function(e){return!(r=t[e.moduleId])||!r.enable||(o=r.cityIds||[],i&&o.indexOf(parseInt(i))>=0||a&&o.indexOf(parseInt(a))>=0||u&&o.indexOf(parseInt(u))>=0?(e.modWrapper.setAttribute("style","display: block !important"),!0):void 0)})}function r(){var e=window.require,n=o.locationLevel||"city",t=window.location.href.match(/[\&\?]location=(\d+)/);return t&&t[1]?Promise.resolve({"cityCode":t[1],"regionCode":t[1],"countryCode":t[1]}):new Promise(function(t,r){return"country"===n?e("mui/location/get-user-location-by-ip",function(e){t(e())},function(e){a("mw.area","mod",{"type":"error","msg":{"err":e}}),t({})}):e("mui/location/get-user-location",function(e){t(e())},function(e){a("mw.area","mod",{"type":"error","msg":{"err":e}}),t({})})})}var o=Q.parseAreaCfg()||{},i=o.modules||{},a=window.batTrack||function(){};return n(i)?new Promise(function(n){r().then(function(r){var o=t(e,r,i);return n({"type":"filter","name":"area","mods":o})},function(t){return a("mw.area","mtop",{"type":"error","msg":{"err":t}}),console&&console.error(t),n({"type":"filter","name":"area","mods":e})})}):Promise.resolve({"type":"filter","name":"area","mods":e})}function y(e){for(var n=0,t=e.length;n<t;n++)G[e[n].moduleId]={"mod":e[n],"index":n}}function h(e){var n=Q.parseRecommend(),t=n.sortSize?+n.sortSize:0;if(!n.floors||!n.floors.length)return e([]);n.floors=JSON.stringify(n.floors),H("mui/mtop/index",function(r){r.request({"api":Y,"v":"1.0","ecode":0,"timeout":2e3,"data":n}).then(function(r){var o=r.data&&r.data.resultValue||{};if("true"!==o.success)return K("mw.recommend","mtop",{"type":"error","msg":{"params":n,"err":o}}),e([]);e(o.floors,t)},function(t){console&&console.error("api "+Y+" cause error, please fix...",t),K("mw.recommend","mtop",{"type":"error","msg":{"params":n,"err":t}}),e([])})},function(n){K("mw.recommend","mod",{"type":"error","msg":{"err":n}}),e([])})}function b(e,n){for(var t=n.length-1;t>=0;t--){var r=n[t].moduleId;G[r]?Z.push(G[r].index):(console&&console.warn("ID\u4e3a"+n[t].moduleId+"\u7684\u6a21\u5757\u5728\u9875\u9762\u4e2d\u4e0d\u5b58\u5728\uff0c\u8bf7\u786e\u8ba4\u662f\u5426\u88ab\u4eba\u4e3a\u9690\u85cf\u6216\u5176\u4ed6\u539f\u56e0\u3002"),n.splice(t,1))}Z.sort(function(e,n){return e<n?-1:e>n?1:e===n?0:void 0})}function I(e){return y(e),new Promise(function(n){function t(t,r){var o=[];if(o=e.slice(),!t||!t.length)return n({"type":"sort","name":"recommend","mods":o||[]});if(b(e,t),Z.length)if(r){for(var i=Math.min(r,t.length),a=0;a<i;a++)o[Z[a]]=G[t[a].moduleId].mod;for(var u=t.length-1;u>=i;u--)o.splice(Z[u],1)}else for(var d=0,c=t.length;d<c;d++)o[Z[d]]=G[t[d].moduleId].mod;n({"type":"sort","name":"recommend","mods":o||[]})}h(t)})}function k(e){function n(e){if(e){var n=void 0;for(n in e)if(e[n].enable)return!0}return!1}function t(e,n,t){var r=e;return e&&n&&(r=e.filter(function(e){if(!n||!1!==n[e.moduleId]&&"false"!==n[e.moduleId])return e.modWrapper&&e.modWrapper.setAttribute&&e.modWrapper.setAttribute("style","display: block !important"),!0})),r}function r(e,n,t){var r=window.require;return new Promise(function(e,t){var o=null;if(n){var i="ruleids=",a=n.indexOf(i);a>=0&&(o=n.substring(a+i.length))}if(!o)return u("mw.jucube","mtop",{"type":"error","msg":{"err":"\u8bf7\u6c42url\u4e3a\u7a7a"}}),void e(null);var d={"ruleids":o};r("mui/mtop/index",function(n){n.request({"api":"mtop.ju.dingtou.rule.execute.batch","v":"1.0","ecode":0,"timeout":4e3,"data":d}).then(function(n){var t=n&&n.data;if(t)e(t);else{var r=n&&n.ret;u("mw.jucube","mtop",{"type":"error","msg":{"params":d,"err":r}}),e(null),console.error("server data error")}},function(n){u("mw.jucube","mtop",{"type":"error","msg":{"params":d,"err":n}}),e(null),console.error(n)})},function(n){u("mw.jucube","mod",{"type":"error","msg":{"err":n}}),e(null),console.error(n)})})}var o=Q.parseJuCubeCfg()||{},i=o.modules||{},a=o.remote,u=window.batTrack||function(){};return n(i)?new Promise(function(n){r(i,a).then(function(r){var o=t(e,r,i);return n({"type":"filter","name":"jucube","mods":o})},function(t){return u("mw.jucube","mtop",{"type":"error","msg":{"err":t}}),n({"type":"filter","name":"jucube","mods":e})})["catch"](function(t){return u("mw.jucube","mtop",{"type":"error","msg":{"err":t}}),n({"type":"filter","name":"jucube","mods":e})})}):Promise.resolve({"type":"filter","name":"jucube","mods":e})}function O(e){function n(e){if(e){var n=void 0;for(n in e)if(e[n].enable)return!0}return!1}function t(e,n,t){var r=e,o=n;if(r&&r.length>1&&o&&o.length>1){for(var i=[],a=0;a<o.length;a++){o[a]=o[a]+"";for(var u=!1,d=0;d<r.length;d++)if(o[a]===r[d].moduleId||o[a]===r[d].zebraId){u=!0;break}u&&i.push(o[a])}if(o=i,o.length>1){for(var c=[],s=0,a=0;a<r.length;a++){var l=r[a].moduleId||r[a].zebraId;if(o.indexOf(l)>=0){for(var d=0;d<r.length;d++)o[s]!==r[d].moduleId&&o[s]!==r[d].zebraId||(c[a]=r[d]);s+=1}else c[a]=r[a]}r=c}}return r&&r.length>0&&r.forEach(function(e){e&&e.modWrapper&&e.modWrapper.setAttribute&&e.modWrapper.setAttribute("style","display: block !important")}),r}function r(e,n,t){var r=window.require;return new Promise(function(e,t){if(!n)return void e(null);r("mui/fetch/jsonp",function(t){t(n,{"credentials":"include","method":"jsonp","timeout":4e3}).then(function(e){return e&&e.json()}).then(function(n){n?e(n):(u("mw.jupsort","mod",{"type":"error","msg":{"err":"server error"}}),e(null),console.error("server data error"))})["catch"](function(n){u("mw.jupsort","mod",{"type":"error","msg":{"err":n}}),e(null),console.error(n)})},function(n){u("mw.jupsort","mod",{"type":"error","msg":{"err":n}}),e(null),console.error(n)})})}var o=Q.parseJupSortCfg()||{},i=o.modules||{},a=o.remote,u=window.batTrack||function(){};return n(i)?new Promise(function(n){r(i,a).then(function(r){var o=t(e,r,i);return n({"type":"sort","name":"jupsort","mods":o})},function(t){return u("mw.jupsort","http",{"type":"error","msg":{"err":t}}),n({"type":"sort","name":"jupsort","mods":e})})["catch"](function(t){return u("mw.jupsort","http",{"type":"error","msg":{"err":t}}),n({"type":"sort","name":"jupsort","mods":e})})}):Promise.resolve({"type":"sort","name":"jupsort","mods":e})}function E(e){window.requestNextAnimationFrame=function(){var e=undefined,n=undefined,t=(undefined,navigator.userAgent),r=0,o=this;return window.webkitRequestAnimationFrame&&(n=function(e){e===undefined&&(e=+new Date),o.callback(e)},e=window.webkitRequestAnimationFrame,window.webkitRequestAnimationFrame=function(t,r){o.callback=t,e(n,r)}),window.mozRequestAnimationFrame&&(r=t.indexOf("rv:"),-1!=t.indexOf("Gecko")&&"2.0"===t.substr(r+3,3)&&(window.mozRequestAnimationFrame=undefined)),window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,n){var t=void 0,r=void 0;window.setTimeout(function(){t=+new Date,e(t),r=+new Date,o.timeout=1e3/60-(r-t)},o.timeout)}}(),window.requestNextAnimationFrame(e)}function A(e,n,t){e.addEventListener?e.addEventListener(n,t):e.attachEvent&&e.attachEvent("on"+n,t)}function M(e,n,t){e.removeEventListener?e.removeEventListener(n,t):e.detachEvent&&e.detachEvent("on"+n,t)}function S(e){function n(e){function n(n){t||(e(),t=!0)}var t=!1,r=document;if(r.addEventListener)r.addEventListener("DOMContentLoaded",n,!1);else if(r.attachEvent){var o=!1;try{o=null!==window.frameElement}catch(i){}r.documentElement.doScroll&&!o&&function e(){if(!t)try{r.documentElement.doScroll("left"),n()}catch(i){setTimeout(e,10)}}(),r.attachEvent("onreadystatechange",function(){"complete"===r.readyState&&n()})}}e&&!e.ready&&(e.ready=n)}function x(e){if(e&&e.$el&&1===e.$el.nodeType){var n=Boolean(!!e.$el.getAttribute("elevator")||e.$el.querySelectorAll(re).length);return n&&e.$dispatch("elevatorRefresh"),n}return!1}function z(e){if(oe===undefined)try{ie=document.querySelector("#vuePatchData"),oe=JSON.parse(ie.value)}catch(r){oe=null}if(oe){var n=[],t={};return oe&&oe.zebraConfig?(n=oe.zebraConfig.components||oe.zebraConfig.modules||[],n.length&&n.map(function(n){n.moduleId===e&&(t=n.meta)}),t):t}}function C(e,n,t,r){r=r||{},ae.push({"def":e,"info":n,"data":t,"theme":r.meta||r.theme,"config":r.config}),1===ae.length&&setTimeout(T)}function T(){var e=ae.shift();if(e){var n=e.info,t=e.def,r=e.theme,o=e.config;if(!ue&&ce.test(n.mod))return ue=e,T();var i=void 0;if(e.data)i=e.data;else{var a=void 0;try{a=n.el.getElementsByClassName("vue-comp-data")[0],i=JSON.parse(a.value)}catch(u){i={}}}try{oe||(ie=document.querySelector("#vuePatchData"),oe=JSON.parse(ie.value))}catch(u){oe=null}t.propsData={"moduleId":n.moduleId,"spm":n.moduleId,"data":i,"$config":o||i.$config,"$theme":r||i.$theme||z(n.moduleId),"isZebraModule":!0},ne(["@ali/mui-vuejs/runtime","@ali/mui-vuejs/render","@ali/mui-weex-vue-patch/index","@ali/mui-weex-zebra-utils/index"],function(e,r,o,i){o.getInstance({"isWeex":!1,"isWeb":!0,"require":ne,"Vue":e,"zebraUtils":i}).init(function(){var r=null;try{r=new e(t)}catch(u){console&&console.error("mount weex vue module "+n.mod+" got error.",u),te("plug.mountvue","init",{"type":"error","msg":{"err":u}})}if(!r)return T();r.$on("hook:mounted",function(){window.weex.registerVueInstance(r),x(r)&&++se>=6&&ue&&!de&&(de=!0,ae.unshift(ue)),setTimeout(function(){T()})}),r.$mount(n.el)})})}else ue&&!de&&(de=!0,C(ue.def,ue.info))}function j(e){var n=0;if(!ve){ve=!0;for(var t=0,r=ge.length;t<r;t++)n=r-t-1,Q.isInViewport(ge[n].el,window.$zebra.diff)&&(pe.push(ge[n]),ge.splice(n,1),q(e));ve=!1}}function q(e){for(var n=void 0,t=void 0;n=pe.shift();)!function(n){function r(r){var o=Q.getModuleMetaInfoById(n.moduleId);if(Q.isTypeOf("Function",r))try{r(n.el,n.cfg,{"data":e[n.moduleId]||{},"config":o.config||{},"theme":o.meta||{}})}catch(i){ye("plug.asynk","init",{"type":"error","msg":{"err":i}})}else Q.isTypeOf("Object",r)&&r.isVue&&(t=Object.assign({},r),le.addToVueMountQue(t,n))}function o(e){ye("plug.asynk","mod",{"type":"error","msg":{"err":e}})}fe(function(){setTimeout(function(){we(n.mod,r,o)},15)})}(n)}function $(e,n){function t(){if(!e.async.length)return r&&clearTimeout(r),o&&clearInterval(o),void me.removeEvent(window,"scroll",t);j(n),r&&clearTimeout(r),o&&clearInterval(o),o=setInterval(function(){j(n)},300),r=setTimeout(function(){o&&clearInterval(o)},3e3)}var r=null,o=null;ge=e.async||[],window.CustomEvent&&window.dispatchEvent?(window.$zebraLoader||(window.$zebraLoader={}),window.$zebraLoader.trigger=function(e){var n=new CustomEvent(e);window.dispatchEvent(n)}):console.warn("not support CustomEvent yet"),me.bindEvent(window,"zebraLoader.async",function(){j(n)}),j(n),me.bindEvent(window,"load",function(){j(n)}),me.bindEvent(window,"scroll",t)}function F(e,n){for(var t=e,r=[],o=0,i=t.length;o<i;o++)r.push(t[o].mod);he(r,function(){for(var e=Array.prototype.slice.call(arguments),r=void 0,o=void 0,i=void 0,a=0,u=e.length;a<u;a++){r=e[a],o=t[a];var d=Q.getModuleMetaInfoById(o.moduleId);if(Q.isTypeOf("Function",r))if(Q.isDebug())r(o.el,o.cfg,{"data":n[o.moduleId]||{},"config":d.config||{},"theme":d.meta||{}});else try{r(o.el,o.cfg,{"data":n[o.moduleId]||{},"config":d.config||{},"theme":d.meta||{}})}catch(c){console&&console.error(c),Q.isLteIE7()||be("plug.synk","init",{"type":"error","msg":{"err":c}})}else Q.isTypeOf("Object",r)&&r.isVue&&(i=Object.assign({},r),le.addToVueMountQue(i,o))}},function(e){be("plug.synk","mod",{"type":"error","msg":{"err":e}}),P(t,n)})}function P(e,n){for(var t=void 0,r=function(r,o){var i=e[r];he(i.mod,function(e){var r=Q.getModuleMetaInfoById(i.moduleId);if(Q.isTypeOf("Function",e))try{e(i.el,i.cfg,{"data":n[i.moduleId],"config":r.config,"meta":r.meta})}catch(o){be("plug.synk","init",{"type":"error","msg":{"err":o}})}else Q.isTypeOf("Object",e)&&e.isVue&&(t=Object.assign({},e),le.addToVueMountQue(t,i))},function(e){L(i.mod+"\u7ec4\u4ef6\u81ea\u8eab\u811a\u672c\u6216\u8005require\u4f9d\u8d56\u8d44\u6e90\u4e0d\u5b58\u5728\uff0c\u4e3a\u4e86\u907f\u514d\u95ee\u9898\u5f53\u524d\u8282\u70b9\u5df2\u9690\u85cf",e),i.el&&(i.el.style.display="none")})},o=0,i=e.length;o<i;o++)r(o,i)}function L(e,n){e="string"==typeof e?e:"\u6709\u7ec4\u4ef6\u4e0d\u5b58\u5728\uff0c\u65e0\u6cd5\u52a0\u8f7d",console&&console.error(e),Q.isLteIE7()||be("plug.synk","mod",{"type":"error","msg":{"err":n}})}function J(e,n){F(e.sync||[],n)}function B(e,n,t){var r=e,o=V(n),i=n.modules||[];Ie(o,function(){for(var r=Array.prototype.slice.call(arguments),o=void 0,a=void 0,u=void 0,d=0,c=r.length;d<c;d++){if(o=r[d],!(a=D(i[d].moduleId,e)))return;var s=n.data[a.moduleId]||{},l=Q.getModuleMetaInfoById(a.moduleId);if(Q.isTypeOf("Function",o))if(Q.isDebug())Q.isTypeOf("Function",t)&&t(a,a.el),o(a.el,a.cfg,{"data":s,"config":l.config||{},"theme":l.meta||{}});else try{Q.isTypeOf("Function",t)&&t(a,a.el),o(a.el,a.cfg,{"data":s,"config":l.config||{},"theme":l.meta||{}})}catch(f){console&&console.error(f),Q.isLteIE7()||ke("plug.synk","init",{"type":"error","msg":{"err":f}})}else Q.isTypeOf("Object",o)&&o.isVue&&(Q.isTypeOf("Function",t)&&t(a,a.el),u=Object.assign({},o),le.addToVueMountQue(u,a,s,l))}},function(e){ke("plug.synk","mod",{"type":"error","msg":{"err":e}}),N(r,n)})}function V(e){var n=[];return e&&e.modules.forEach(function(e){n.push(e.modEntry)}),n}function D(e,n){var t=void 0;return n.some(function(n){return n.moduleId===e&&(t=n,!0)}),t}function N(e,n){for(var t=void 0,r=function(r,o){var i=e[r];Ie(i.mod,function(e){var r=Q.getModuleMetaInfoById(i.moduleId);if(Q.isTypeOf("Function",e))try{e(i.el,i.cfg,{"data":n[i.moduleId],"config":r.config,"meta":r.meta})}catch(o){ke("plug.synk","init",{"type":"error","msg":{"err":o}})}else Q.isTypeOf("Object",e)&&e.isVue&&(t=Object.assign({},e),le.addToVueMountQue(t,i))},function(e){R(i.mod+"\u7ec4\u4ef6\u81ea\u8eab\u811a\u672c\u6216\u8005require\u4f9d\u8d56\u8d44\u6e90\u4e0d\u5b58\u5728\uff0c\u4e3a\u4e86\u907f\u514d\u95ee\u9898\u5f53\u524d\u8282\u70b9\u5df2\u9690\u85cf",e),i.el&&(i.el.style.display="none")})},o=0,i=e.length;o<i;o++)r(o,i)}function R(e,n){e="string"==typeof e?e:"\u6709\u7ec4\u4ef6\u4e0d\u5b58\u5728\uff0c\u65e0\u6cd5\u52a0\u8f7d",console&&console.error(e),Q.isLteIE7()||ke("plug.synk","mod",{"type":"error","msg":{"err":n}})}function W(e,n,t){B(e||[],n,t)}function _(){window.$zebraLoader={},window.$zebraLoader.trigger=function(){};var e=new Me;e.plug("synk");var n=Se.plugins;n&&n.asyncload&&e.plug("asynk");var t=Se.middlewares||{};Q.parseAreaCfg().enable&&!1!==t.area&&e.use("area"),Q.parseRecommend().enable&&!1!==t.recommend&&e.use("recommend"),Q.parseJuCubeCfg().enable&&!1!==t.jucube&&e.use("jucube"),Q.parseJupSortCfg().enable&&!1!==t.jupsort&&e.use("jupsort"),e.bootstrap()}var Q={"isTypeOf":r,"toArray":o,"isInViewport":i,"isHiddenMod":a,"isDebug":d,"isLteIE7":c,"modIntersection":u,"parseRecommend":s,"parseAreaCfg":l,"getModuleMetaInfoById":f,"parseJuCubeCfg":m,"parseJupSortCfg":g,"getCache":p,"setCache":v},H=window.require,K=window.batTrack||function(){},Y="mtop.taobao.aladdin.service.AldRecommendService.tmall.recommend",Z=[],G={},U={"area":w,"recommend":I,"jucube":k,"jupsort":O},X={"bindEvent":A,"removeEvent":M},ee={"raf":E,"event":X,"ready":S},ne=window.require,te=window.batTrack||function(){},re="[elevator]",oe=void 0,ie=void 0,ae=[],ue=null,de=!1,ce=/^mui\/zebra-rightnav\//,se=0,le={"addToVueMountQue":C},fe=ee.raf,me=ee.event,ge=[],ve=!1,pe=[],we=window.require,ye=window.batTrack||function(){};window.$zebra||(window.$zebra={}),window.$zebra.diff=window.$zebra.diff||50;var he=window.require,be=window.batTrack||function(){},Ie=window.require,ke=window.batTrack||function(){},Oe={"asynk":$,"synk":J,"dataService":W},Ee=window.document,Ae=window.batTrack||function(){},Me=function(){function r(e){n(this,r),this.ctx={},this.ctx.diff=e||50,this.ctx.modBuckets={"async":[],"sync":[],"ignore":[]},this.init()}return t(r,[{"key":"init","value":function(){var e=this.ctx;e.buildinMiddlewares=U,e.buildinPlugins=Oe,e.usedList=[],e.usedMiddlewares=[],e.plugedList=[],e.usedPlugins=[],e.loader=feloader||KISSY}},{"key":"getWrapperFrom","value":function(e){for(var n=e.parentElement;n&&!n.getAttribute("data-module-id");)n=n.parentElement;return n}},{"key":"getBoxFrom","value":function(e){for(var n=e.firstElementChild;n&&!n.getAttribute("data-mod-name");)n=n.firstElementChild;return n}},{"key":"queryAllModWrappers","value":function(){var e=this.ctx,n=void 0,t=[],r=[],o=!1,i=0,a=void 0;if(Ee.querySelectorAll)t=Ee.querySelectorAll(".mui-zebra-module[data-module-id]"),n=Ee.querySelectorAll('div[class="mui-zebra-page"]')[0];else for(var u=Ee.getElementsByTagName("*"),d=0,c=u.length;d<c;d++){var s=u[d];s&&(s.getAttribute("class")||"").indexOf("mui-zebra-module")>-1&&s.getAttribute("data-module-id")?t.push(s):s&&(s.getAttribute("class")||"").indexOf("mui-zebra-page")>-1&&(n=s)}t=Q.toArray(t);for(var l=0,f=t.length;l<f;l++){var m=t[l],g=m.getAttribute("data-module-id");o=m.parentElement===n,o&&a===undefined&&(a=l),o&&i++,r.push({"moduleId":g,"modWrapper":m,"isPureModule":o})}e.firstPureModuleIndex=a,e.pureModuleCount=i,e.modContainer=n,e.zebraModuleWrappers=r}},{"key":"queryAllInitMods","value":function(){var e=this.ctx,n=[];if(Ee.querySelectorAll)n=Ee.querySelectorAll("[data-mod-name]");else for(var t=Ee.getElementsByTagName("*"),r=0,o=t.length;r<o;r++){var i=t[r];i&&i.getAttribute("data-mod-name")&&n.push(i)}e.zebraModules=n}},{"key":"use","value":function(e){var n=this.ctx,t=n.usedMiddlewares,r=n.buildinMiddlewares,o=n.usedList,i=r[e];return i?(t.indexOf(i)<0?(t.push(i),o.push(e)):console&&console.warn("middleware "+e+" has alreay used, do not used twice"),this):(console&&console.warn("middleware "+e+" not exist"),this)}},{"key":"plug","value":function(e){var n=this.ctx,t=n.usedPlugins,r=n.buildinPlugins,o=n.plugedList,i=r[e];return i?(t.indexOf(i)<0?(t.push(i),o.push(e)):console&&console.warn("plugin "+e+" has alreay pluged, do not pluged twice"),this):(console&&console.warn("plugin "+e+" not exist"),this)}},{"key":"invorkMiddlewares","value":function(){function n(e){for(var n=Ee.createDocumentFragment(),t=0,r=e.length;t<r;t++)n.appendChild(e[t].modWrapper);return n}for(var t=this,r=this.ctx,o=r.usedMiddlewares,i=r.zebraModuleWrappers,a=r.modContainer,u=r.firstPureModuleIndex,d=r.pureModuleCount,c=[],s=0,l=o.length;s<l;s++)c.push(o[s](i.filter(function(e){return e.isPureModule})));if(!(c.length&&a&&i.length&&d))return this.queryAllInitMods(),void this.bucketingMods();Promise.all(c).then(function(r){r&&r.length||Ae("core.invorkMV","result",{"type":"error","msg":{"err":r}});for(var o=Q.modIntersection(r)||[],c=n(o);a.firstElementChild;)a.removeChild(a.firstElementChild);a.appendChild(c),i.splice.apply(i,[u,d].concat(e(o))),t.queryAllInitMods(),t.bucketingMods()})["catch"](function(e){Ae("core.invorkMV","reject",{"type":"error","msg":{"err":e}}),console&&console.error(e,"the middleware reject as wrong operation, cause this error"),t.queryAllInitMods(),t.bucketingMods()})}},{"key":"bucketingMods","value":function(){function e(e){if(u=e.getAttribute("data-mod-name")){i=e.getAttribute("data-zebra-load");var n=d.getWrapperFrom(e),t=n&&n.getAttribute("data-module-id");if(a={"moduleId":t||"","mod":u,"el":e,"cfg":e.getAttribute("data-config")},!i&&e.getAttribute("data-async-load")&&(i="async"),!i||Q.isHiddenMod(e))return void r.sync.push(a);"ignore"===i?r.ignore.push(a):"async"===i||!Q.isInViewport(e,o)&&"sync"!==i?r.async.push(a):("sync"===i||Q.isInViewport(e,o))&&r.sync.push(a)}}for(var n=this.ctx,t=(n.zebraModuleWrappers,n.zebraModules),r=n.modBuckets,o=n.diff,i=void 0,a=void 0,u=void 0,d=this,c=0,s=t.length;c<s;c++)e(t[c]);this.invorkPlugins()}},{"key":"getZebraData","value":function(){var e=window.$zebra&&window.$zebra.pageasync&&window.$zebra.pageasync.env;return"dev"===e||window.$zebra.id&&window.$zebra.sv?"previewEnv"===e?this.getPreviewEnvPageData():"dev"===e?this.getDevPageData():this.getOnlinePageData():Promise.resolve({})}},{"key":"getOnlinePageData","value":function(){var e=window.require,n=window.$zebra&&window.$zebra.pageasync&&window.$zebra.pageasync||{},t=n.origin||window.location.origin;t||window.location.origin||(t=location.href.split(":")[0]+"://"+location.hostname);var r=t+"/wh/data/rmc/zebra/v1/"+window.$zebra.id+"/"+window.$zebra.sv+".json";return new Promise(function(t,o){e("mui/fetch/fetch",function(e){e(r).then(function(e){return e.json()}).then(function(e){e?n.forceCache&&setTimeout(function(){Q.setCache(window.$zebra.id,e)}):e=Q.getCache(window.$zebra.id),t(e||{})})["catch"](function(e){var n=Q.getCache(window.$zebra.id);t(n||{}),Ae("core.getOnlinePageData","reject",{"type":"error","msg":{"err":e}})})})})}},{"key":"getPreviewEnvPageData","value":function(){var e=window.require,n="http://udp.taobao.org/page/preview.do?pageId="+window.$zebra.id+"&pageSchemaVersion="+window.$zebra.sv,t={};return new Promise(function(r,o){e("mui/fetch/jsonp",function(e){e(n,{"method":"jsonp"}).then(function(e){return e.json()}).then(function(e){Array.isArray(e)&&(e.map(function(e){t[e.moduleId]||(t[e.moduleId]={}),t[e.moduleId][e.tagId]=e.datas}),r(t)),r({})})["catch"](function(e){o(e)})})})}},{"key":"getDevPageData","value":function(){var e=window.require,n=window.$zebra&&window.$zebra.pageasync&&window.$zebra.pageasync.origin||"//test.tmall.com",t=n+"/data.json";return new Promise(function(n,r){e("mui/fetch/jsonp",function(e){e(t,{"method":"jsonp"}).then(function(e){return e.json()}).then(function(e){n({"mockModuleId":e})})["catch"](function(e){r(e)})})})}},{"key":"invorkPlugins","value":function(){var e=this.ctx,n=e.usedPlugins,t=e.buildinPlugins,r=e.modBuckets;n.indexOf(t.asynk)<0&&(r.sync=r.sync.concat(r.async),r.async=[]),Q.isDebug()&&console&&console.info(this.ctx),this.getZebraData().then(function(){for(var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=0,o=n.length;t<o;t++)n[t](r,e)})["catch"](function(e){for(var t=0,o=n.length;t<o;t++)n[t](r,{});console.error(e,"\u83b7\u53d6\u9875\u9762\u6570\u636e\u5931\u8d25,\u5f02\u6b65\u5316\u540e\u7684\u6a21\u5757\u5c06\u53ef\u80fd\u65e0\u6cd5\u5c55\u793a")})}},{"key":"bootstrap","value":function(){this.ctx.loader,this.queryAllModWrappers(),this.invorkMiddlewares()}}]),r}(),Se=window.$zebra||{};window.$zebra=Se;var xe=window.feloader||window.KISSY;ee.ready(xe),xe.ready(_)}()})}();